UNPKG

1.29 kBTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 * Interface used to type all toast config options. See `NgbToastConfig`.
4 *
5 * @since 5.0.0
6 */
7export interface NgbToastOptions {
8 /**
9 * Specify if the toast component should emit the `hide()` output
10 * after a certain `delay` in ms.
11 */
12 autohide?: boolean;
13 /**
14 * Delay in ms after which the `hide()` output should be emitted.
15 */
16 delay?: number;
17 /**
18 * Type of aria-live attribute to be used.
19 *
20 * Could be one of these 2 values (as string):
21 * - `polite` (default)
22 * - `alert`
23 */
24 ariaLive?: 'polite' | 'alert';
25}
26/**
27 * Configuration service for the NgbToast component. You can inject this service, typically in your root component,
28 * and customize the values of its properties in order to provide default values for all the toasts used in the
29 * application.
30 *
31 * @since 5.0.0
32 */
33export declare class NgbToastConfig implements NgbToastOptions {
34 private _ngbConfig;
35 private _animation;
36 autohide: boolean;
37 delay: number;
38 ariaLive: 'polite' | 'alert';
39 get animation(): boolean;
40 set animation(animation: boolean);
41 static ɵfac: i0.ɵɵFactoryDeclaration<NgbToastConfig, never>;
42 static ɵprov: i0.ɵɵInjectableDeclaration<NgbToastConfig>;
43}