UNPKG

ng-toast-stack

Version:

Beautiful & easy to use toast stack messages, having auto close, pause, resume functionality and customization.

51 lines (50 loc) 1.42 kB
import * as i0 from "@angular/core"; export declare class NgToastStackService { id: number; toastsBag: Array<NgToastStackType>; constructor(); push(data: NgToastStackType | string): void; pop(id?: number): void; static(data: NgToastStackType | string): void; success(data: NgToastStackType | string): void; error(data: NgToastStackType | string): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgToastStackService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgToastStackService>; } export interface NgToastStackType { id?: number; type?: string; title?: string; msg: string; autoClose?: boolean; autoCloseTimer?: number; timerRef?: any; timerWidth?: any; icon?: string | boolean; pauseOnHover?: boolean; } export declare class NgToastStack { id: number; type: string; title: string; msg: string; autoClose: boolean; autoCloseTimer: number; timerRef?: any; icon?: string | boolean; pauseOnHover?: boolean; constructor(data: NgToastStackType); getTitle(data: NgToastStackType): string; } export declare class Timer { timeoutId: number | undefined; intervalId: number | undefined; delay: number; start: number; remaining: number; remainingPercentage: number; callback: any; constructor(callback: any, delay: number); pause(): void; resume(): void; }