ngx-bootstrap
Version:
Angular Bootstrap
56 lines (52 loc) • 2.63 kB
TypeScript
import { AnimationBuilder } from '@angular/animations';
import * as i0 from '@angular/core';
import { AfterViewChecked, EventEmitter, ElementRef, Renderer2, ModuleWithProviders } from '@angular/core';
declare class CollapseDirective implements AfterViewChecked {
private _el;
private _renderer;
/** This event fires as soon as content collapses */
collapsed: EventEmitter<CollapseDirective>;
/** This event fires when collapsing is started */
collapses: EventEmitter<CollapseDirective>;
/** This event fires as soon as content becomes visible */
expanded: EventEmitter<CollapseDirective>;
/** This event fires when expansion is started */
expands: EventEmitter<CollapseDirective>;
isExpanded: boolean;
collapseNewValue: boolean;
isCollapsed: boolean;
isCollapse: boolean;
isCollapsing: boolean;
set display(value: string);
/** turn on/off animation */
isAnimated: boolean;
/** A flag indicating visibility of content (shown or hidden) */
set collapse(value: boolean);
get collapse(): boolean;
private _display;
private _isAnimationDone?;
private _player?;
private _stylesLoaded;
private _COLLAPSE_ACTION_NAME;
private _EXPAND_ACTION_NAME;
private readonly _factoryCollapseAnimation;
private readonly _factoryExpandAnimation;
constructor(_el: ElementRef, _renderer: Renderer2, _builder: AnimationBuilder);
ngAfterViewChecked(): void;
/** allows to manually toggle content visibility */
toggle(): void;
/** allows to manually hide content */
hide(): void;
/** allows to manually show collapsed content */
show(): void;
animationRun(isAnimated: boolean, action: string): (callback: () => void) => void;
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", ["bs-collapse"], { "display": { "alias": "display"; "required": false; }; "isAnimated": { "alias": "isAnimated"; "required": false; }; "collapse": { "alias": "collapse"; "required": false; }; }, { "collapsed": "collapsed"; "collapses": "collapses"; "expanded": "expanded"; "expands": "expands"; }, never, never, true, never>;
}
declare class CollapseModule {
static forRoot(): ModuleWithProviders<CollapseModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseModule, never, [typeof CollapseDirective], [typeof CollapseDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<CollapseModule>;
}
export { CollapseDirective, CollapseModule };