UNPKG

1.68 kBTypeScriptView Raw
1import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2import { AlertConfig } from './alert.config';
3import * as i0 from "@angular/core";
4export declare class AlertComponent implements OnInit {
5 private changeDetection;
6 /** Alert type.
7 * Provides one of four bootstrap supported contextual classes:
8 * `success`, `info`, `warning` and `danger`
9 */
10 type: string;
11 /** If set, displays an inline "Close" button */
12 dismissible: boolean;
13 /** Number in milliseconds, after which alert will be closed */
14 dismissOnTimeout?: number | string;
15 /** Is alert visible */
16 isOpen: boolean;
17 /** This event fires immediately after close instance method is called,
18 * $event is an instance of Alert component.
19 */
20 onClose: EventEmitter<AlertComponent>;
21 /** This event fires when alert closed, $event is an instance of Alert component */
22 onClosed: EventEmitter<AlertComponent>;
23 classes: string;
24 dismissibleChange: EventEmitter<boolean>;
25 constructor(_config: AlertConfig, changeDetection: ChangeDetectorRef);
26 ngOnInit(): void;
27 /**
28 * Closes an alert by removing it from the DOM.
29 */
30 close(): void;
31 static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
32 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, ["*"], false, never>;
33}