UNPKG

1.89 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { ChangeDetectorRef, EventEmitter, SimpleChanges, OnInit, OnChanges, OnDestroy } from '@angular/core';
7import { Subject } from 'rxjs';
8import { NbAccordionComponent } from './accordion.component';
9import { NbBooleanInput } from '../helpers';
10/**
11 * Component intended to be used within `<nb-accordion>` component
12 */
13export declare class NbAccordionItemComponent implements OnInit, OnChanges, OnDestroy {
14 private accordion;
15 private cd;
16 /**
17 * Item is collapse (`true` by default)
18 * @type {boolean}
19 */
20 get collapsed(): boolean;
21 set collapsed(val: boolean);
22 static ngAcceptInputType_collapsed: NbBooleanInput;
23 /**
24 * Item is expanded (`false` by default)
25 * @type {boolean}
26 */
27 get expanded(): boolean;
28 set expanded(val: boolean);
29 static ngAcceptInputType_expanded: NbBooleanInput;
30 /**
31 * Item is disabled and cannot be opened.
32 * @type {boolean}
33 */
34 get disabled(): boolean;
35 set disabled(val: boolean);
36 static ngAcceptInputType_disabled: NbBooleanInput;
37 /**
38 * Emits whenever the expanded state of the accordion changes.
39 * Primarily used to facilitate two-way binding.
40 */
41 collapsedChange: EventEmitter<boolean>;
42 accordionItemInvalidate: Subject<boolean>;
43 private collapsedValue;
44 private disabledValue;
45 private destroy$;
46 constructor(accordion: NbAccordionComponent, cd: ChangeDetectorRef);
47 /**
48 * Open/close the item
49 */
50 toggle(): void;
51 /**
52 * Open the item.
53 */
54 open(): void;
55 /**
56 * Collapse the item.
57 */
58 close(): void;
59 ngOnInit(): void;
60 ngOnChanges(changes: SimpleChanges): void;
61 ngOnDestroy(): void;
62 private invalidate;
63}