/** * @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'; import { NbBooleanInput } from '../helpers'; /** * 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 accordion can have multiple items expanded: * @stacked-example(Multiple expanded items, accordion/accordion-multi.component) * * `NbAccordionItemComponent` has several methods, for example it is possible to trigger item click/toggle: * @stacked-example(Expand API, accordion/accordion-toggle.component) * * @styles * * accordion-border-radius: * accordion-padding: * accordion-shadow: * accordion-header-text-color: * accordion-header-text-font-family: * accordion-header-text-font-size: * accordion-header-text-font-weight: * accordion-header-text-line-height: * accordion-header-disabled-text-color: * accordion-header-border-color: * accordion-header-border-style: * accordion-header-border-width: * accordion-item-background-color: * accordion-item-text-color: * accordion-item-text-font-family: * accordion-item-text-font-size: * accordion-item-text-font-weight: * accordion-item-text-line-height: */ export declare class NbAccordionComponent { openCloseItems: Subject; /** * Allow multiple items to be expanded at the same time. * @type {boolean} */ get multi(): boolean; set multi(val: boolean); static ngAcceptInputType_multi: NbBooleanInput; private multiValue; /** * Opens all enabled accordion items. */ openAll(): void; /** * Closes all enabled accordion items. */ closeAll(): void; }