1 | import { BodyOutputType } from './bodyOutputType';
|
2 | export interface Toast {
|
3 | type: ToastType;
|
4 | title?: string;
|
5 | body?: any;
|
6 | toastId?: string;
|
7 | toastContainerId?: number;
|
8 | onShowCallback?: OnActionCallback;
|
9 | onHideCallback?: OnActionCallback;
|
10 | onClickCallback?: OnActionCallback;
|
11 | timeout?: number;
|
12 | bodyOutputType?: BodyOutputType;
|
13 | showCloseButton?: boolean;
|
14 | closeHtml?: string;
|
15 | data?: any;
|
16 | tapToDismiss?: boolean;
|
17 | progressBar?: boolean;
|
18 | progressBarDirection?: ProgressBarDirection;
|
19 | }
|
20 | export declare type ToastType = 'success' | 'info' | 'warning' | 'wait' | 'error';
|
21 | export declare type OnActionCallback = (toast: Toast) => void;
|
22 | export declare type ProgressBarDirection = 'decreasing' | 'increasing';
|