UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

59 lines (58 loc) 1.89 kB
import { ChangeDetectorRef, ElementRef } from '@angular/core'; import { DokuAccordion } from './accordion.component'; import * as i0 from "@angular/core"; export declare class DokuAccordionItem { private accordion; private cdRef; private elementRef; readonly classes = "d-accordion-item"; /** * Autogenerate unique id of the accordion item. */ accordionId: string; /** * Whether the accordion item should be expanded. * * By default, the accordion `multi` is false, * it will collapse other expanded items. * * Disabled accordion item will not expanded. * * @default false */ get expanded(): boolean; set expanded(value: boolean); private _expanded; /** * Whether the accordion item is disabled. * @default false */ disabled: boolean; constructor(accordion: DokuAccordion, cdRef: ChangeDetectorRef, elementRef: ElementRef); /** * Toggle (expand/collapse) the accordion item. * Do nothing if `disabled` is true. */ toggle(): void; /** * Collapse the accordion item. * Do nothing if `disabled` is true. */ collapse(): void; /** * Expand the accordion item. * Do nothing if `disabled` is true. */ expand(): void; private handleExpandAtATime; /** * See detail on {@link DokuAccordion.expandAll} */ private handleExpandAll; /** * See detail on {@link DokuAccordion.collapseAll} */ private handleCollapseAll; static ɵfac: i0.ɵɵFactoryDeclaration<DokuAccordionItem, [{ host: true; }, null, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<DokuAccordionItem, "doku-accordion-item", ["dokuAccordionItem"], { "accordionId": "accordionId"; "expanded": "expanded"; "disabled": "disabled"; }, {}, never, ["doku-accordion-header", "doku-accordion-body"], true>; }