1 | import { ElementRef, EventEmitter, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2 | import { NgbCollapseConfig } from './collapse-config';
|
3 |
|
4 |
|
5 |
|
6 | export declare class NgbCollapse implements OnInit, OnChanges {
|
7 | private _element;
|
8 | private _zone;
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | animation: any;
|
18 | |
19 |
|
20 |
|
21 | collapsed: boolean;
|
22 | ngbCollapseChange: EventEmitter<boolean>;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | shown: EventEmitter<void>;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | hidden: EventEmitter<void>;
|
35 | constructor(_element: ElementRef, config: NgbCollapseConfig, _zone: NgZone);
|
36 | ngOnInit(): void;
|
37 | ngOnChanges({ collapsed }: SimpleChanges): void;
|
38 | /**
|
39 | * Triggers collapsing programmatically.
|
40 | *
|
41 | * If there is a collapsing transition running already, it will be reversed.
|
42 | * If the animations are turned off this happens synchronously.
|
43 | *
|
44 | * @since 8.0.0
|
45 | */
|
46 | toggle(open?: boolean): void;
|
47 | private _runTransition;
|
48 | private _runTransitionWithEvents;
|
49 | }
|