angular2-toaster
Version:
An Angular Toaster Notification library based on AngularJS-Toaster
23 lines (22 loc) • 758 B
TypeScript
import { BodyOutputType } from './bodyOutputType';
export interface Toast {
type: ToastType;
title?: string;
body?: any;
toastId?: string;
toastContainerId?: number;
onShowCallback?: OnActionCallback;
onHideCallback?: OnActionCallback;
onClickCallback?: OnActionCallback;
timeout?: number;
bodyOutputType?: BodyOutputType;
showCloseButton?: boolean;
closeHtml?: string;
data?: any;
tapToDismiss?: boolean;
progressBar?: boolean;
progressBarDirection?: ProgressBarDirection;
}
export declare type ToastType = 'success' | 'info' | 'warning' | 'wait' | 'error';
export declare type OnActionCallback = (toast: Toast) => void;
export declare type ProgressBarDirection = 'decreasing' | 'increasing';