1 | import { EventEmitter } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 | import * as i0 from "@angular/core";
|
4 | /**
|
5 | * Alert is a component to provide contextual feedback messages for user.
|
6 | *
|
7 | * It supports several alert types and can be dismissed.
|
8 | */
|
9 | export declare class NgbAlert {
|
10 | private _config;
|
11 | private _elementRef;
|
12 | private _zone;
|
13 | /**
|
14 | * If `true`, alert closing will be animated.
|
15 | *
|
16 | * Animation is triggered only when clicked on the close button (×)
|
17 | * or via the `.close()` function
|
18 | *
|
19 | * @since 8.0.0
|
20 | */
|
21 | animation: boolean;
|
22 | /**
|
23 | * If `true`, alert can be dismissed by the user.
|
24 | *
|
25 | * The close button (×) will be displayed and you can be notified
|
26 | * of the event with the `(closed)` output.
|
27 | */
|
28 | dismissible: boolean;
|
29 | /**
|
30 | * Type of the alert.
|
31 | *
|
32 | * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,
|
33 | * `'secondary'`, `'light'` and `'dark'`.
|
34 | */
|
35 | type: string;
|
36 | /**
|
37 | * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.
|
38 | *
|
39 | * @since 8.0.0
|
40 | */
|
41 | closed: EventEmitter<void>;
|
42 | /**
|
43 | * Triggers alert closing programmatically (same as clicking on the close button (×)).
|
44 | *
|
45 | * The returned observable will emit and be completed once the closing transition has finished.
|
46 | * If the animations are turned off this happens synchronously.
|
47 | *
|
48 | * Alternatively you could listen or subscribe to the `(closed)` output
|
49 | *
|
50 | * @since 8.0.0
|
51 | */
|
52 | close(): Observable<void>;
|
53 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbAlert, never>;
|
54 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbAlert, "ngb-alert", ["ngbAlert"], { "animation": { "alias": "animation"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
55 | }
|