UNPKG

@kushki/ng-suka

Version:

<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>

48 lines (47 loc) 1.36 kB
import { EventEmitter, OnInit, OnDestroy, TemplateRef } from '@angular/core'; import { Accordion } from './accordion.component'; export declare class AccordionItem implements OnInit, OnDestroy { private accordion; static accordionItemCount: number; /** * Sets the accordion title. Can be a `string` or a `TemplateRef`. Defaults to Title plus the current accordion item count. */ title: string | TemplateRef<any>; /** * Used to set a custom id to the element. Defaults to a counter */ id: string; /** * Skeleton state. Set to `true` to display a skeleton accordion. */ skeleton: boolean; /** * Emits an event when the accordion item is opened. */ opened: EventEmitter<any>; /** * Emits an event when the accordion item is closed. */ closed: EventEmitter<any>; itemClass: boolean; /** * Sets if the item is expanded. */ expanded: boolean; itemType: string; role: string; ariaLevel: number; private alive; private skeletonSubscription; private openSubscription; constructor(accordion: Accordion); /** * Toggles the accordion opened state. */ toggle(): void; protected open(): void; protected close(): void; ngOnInit(): void; ngOnDestroy(): void; isTemplate(value: any): boolean; }