ngx-bootstrap
Version:
Angular Bootstrap
54 lines (49 loc) • 2.39 kB
TypeScript
import * as i0 from '@angular/core';
import { OnInit, EventEmitter, ChangeDetectorRef, ModuleWithProviders } from '@angular/core';
declare class AlertConfig {
/** default alert type */
type: string;
/** is alerts are dismissible by default */
dismissible: boolean;
/** default time before alert will dismiss */
dismissOnTimeout?: number;
static ɵfac: i0.ɵɵFactoryDeclaration<AlertConfig, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AlertConfig>;
}
declare class AlertComponent implements OnInit {
private changeDetection;
/** Alert type.
* Provides one of four bootstrap supported contextual classes:
* `success`, `info`, `warning` and `danger`
*/
type: string;
/** If set, displays an inline "Close" button */
dismissible: boolean;
/** Number in milliseconds, after which alert will be closed */
dismissOnTimeout?: number | string;
/** Is alert visible */
isOpen: boolean;
/** This event fires immediately after close instance method is called,
* $event is an instance of Alert component.
*/
onClose: EventEmitter<AlertComponent>;
/** This event fires when alert closed, $event is an instance of Alert component */
onClosed: EventEmitter<AlertComponent>;
classes: string;
dismissibleChange: EventEmitter<boolean>;
constructor(_config: AlertConfig, changeDetection: ChangeDetectorRef);
ngOnInit(): void;
/**
* Closes an alert by removing it from the DOM.
*/
close(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "alert,bs-alert", never, { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "dismissOnTimeout": { "alias": "dismissOnTimeout"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "onClose": "onClose"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
}
declare class AlertModule {
static forRoot(): ModuleWithProviders<AlertModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<AlertModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertModule, never, [typeof AlertComponent], [typeof AlertComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<AlertModule>;
}
export { AlertComponent, AlertConfig, AlertModule };