UNPKG

758 BTypeScriptView Raw
1import { BodyOutputType } from './bodyOutputType';
2export 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}
20export declare type ToastType = 'success' | 'info' | 'warning' | 'wait' | 'error';
21export declare type OnActionCallback = (toast: Toast) => void;
22export declare type ProgressBarDirection = 'decreasing' | 'increasing';