@doku-dev/doku-fragment
Version:
A new Angular UI library that moving away from Bootstrap and built from scratch.
43 lines (42 loc) • 1.68 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class DokuAccordion implements OnDestroy {
/**
* Whether the accordion should allow multiple expanded items simultaneously.
* @default false
*/
multi: boolean;
protected readonly classes = "d-accordion";
private destroy$;
/**
* Use to dispatch active accordion id on the accordion items.
* Value can be other than active accordion id for specific use cases.
*
* Specific values:
* - "d-accordion-action-expand-all"
* - "d-accordion-action-collapse-all"
*/
protected selectionDispatcher$: BehaviorSubject<string | null>;
/**
* Use to listen active accordion id changes on the accordion items.
* But the value can be other than active accordion id.
* See {@link selectionDispatcher$} for the list of specific values.
*/
protected selectionListener$: import("rxjs").Observable<string | null>;
ngOnDestroy(): void;
/**
* Expand all accordion items when `multi` is true.
* If `multi` is false and all items are collapsed, it will open the first one.
* Otherwise, it will keep the expanded one.
*
* Disabled accordion items will not affected.
*/
expandAll(): void;
/**
* Collapse all accordion items except for disabled items.
*/
collapseAll(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DokuAccordion, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DokuAccordion, "doku-accordion", ["dokuAccordion"], { "multi": "multi"; }, {}, never, ["doku-accordion-item"], true>;
}