UNPKG

1.02 kBTypeScriptView Raw
1import { EventEmitter, OnInit } from '@angular/core';
2import { AlertConfig } from './alert.config';
3export declare class AlertComponent implements OnInit {
4 /** Alert type. Provides one of four bootstrap supported contextual classes: `success`, `info`, `warning` and `danger` */
5 type: string;
6 /** If set, displays an inline "Close" button */
7 dismissible: boolean;
8 /** Number in milliseconds, after which alert will be closed */
9 dismissOnTimeout: number | string;
10 /** This event fires immediately after close instance method is called, $event is an instance of Alert component. */
11 onClose: EventEmitter<AlertComponent>;
12 /** This event fires when alert closed, $event is an instance of Alert component */
13 onClosed: EventEmitter<AlertComponent>;
14 isClosed: boolean;
15 classes: string;
16 dismissibleChange: EventEmitter<string>;
17 constructor(_config: AlertConfig);
18 ngOnInit(): void;
19 /**
20 * Closes an alert by removing it from the DOM.
21 */
22 close(): void;
23}