1 | import { EventEmitter, Renderer2, ElementRef, OnChanges, OnInit, SimpleChanges, NgZone } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 | import { NgbAlertConfig } from './alert-config';
|
4 | import * as i0 from "@angular/core";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare class NgbAlert implements OnInit, OnChanges {
|
11 | private _renderer;
|
12 | private _element;
|
13 | private _zone;
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | animation: boolean;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | dismissible: boolean;
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | type: string;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 | closed: EventEmitter<void>;
|
43 | constructor(config: NgbAlertConfig, _renderer: Renderer2, _element: ElementRef, _zone: NgZone);
|
44 | /**
|
45 | * Triggers alert closing programmatically (same as clicking on the close button (×)).
|
46 | *
|
47 | * The returned observable will emit and be completed once the closing transition has finished.
|
48 | * If the animations are turned off this happens synchronously.
|
49 | *
|
50 | * Alternatively you could listen or subscribe to the `(closed)` output
|
51 | *
|
52 | * @since 8.0.0
|
53 | */
|
54 | close(): Observable<void>;
|
55 | ngOnChanges(changes: SimpleChanges): void;
|
56 | ngOnInit(): void;
|
57 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbAlert, never>;
|
58 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbAlert, "ngb-alert", ["ngbAlert"], { "animation": "animation"; "dismissible": "dismissible"; "type": "type"; }, { "closed": "closed"; }, never, ["*"], false>;
|
59 | }
|