/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { Subject } from 'rxjs'; /** * An accordion allows to toggle the display of sections of content * * Basic example * @stacked-example(Showcase, accordion/accordion-showcase.component) * * ```ts * * * Product Details * * Item Content * * * * ``` * ### Installation * * Import `NbAccordionModule` to your feature module. * ```ts * @NgModule({ * imports: [ * // ... * NbAccordionModule, * ], * }) * export class PageModule { } * ``` * ### Usage * * With `multi` mode acordion can have multiple items expanded: * @stacked-example(Showcase, accordion/accordion-multi.component) * * `NbAccordionItemComponent` has several method, for example it is possible to trigger item click/toggle: * @stacked-example(Showcase, accordion/accordion-toggle.component) * * @styles * * accordion-padding: * accordion-separator: * accordion-header-font-family: * accordion-header-font-size: * accordion-header-font-weight: * accordion-header-fg-heading: * accordion-header-disabled-fg: * accordion-header-border-width: * accordion-header-border-type: * accordion-header-border-color: * accordion-item-bg: * accordion-item-font-size: * accordion-item-font-weight: * accordion-item-font-family: * accordion-item-fg-text: * accordion-item-shadow: */ export declare class NbAccordionComponent { static readonly STATUS_ACTIVE = "active"; static readonly STATUS_DISABLED = "disabled"; static readonly STATUS_PRIMARY = "primary"; static readonly STATUS_INFO = "info"; static readonly STATUS_SUCCESS = "success"; static readonly STATUS_WARNING = "warning"; static readonly STATUS_DANGER = "danger"; openCloseItems: Subject; /** * Allow multiple items to be expanded at the same time. * @type {boolean} */ multi: boolean; private multiValue; /** * Opens all enabled accordion items. */ openAll(): void; /** * Closes all enabled accordion items. */ closeAll(): void; }