UNPKG

angular2-toaster-mod

Version:

An Angular 2 Toaster Notification library based on AngularJS-Toaster

29 lines (28 loc) 1.01 kB
import { ChangeDetectorRef, NgZone } from '@angular/core'; import { ToasterConfig } from './toaster-config'; import { ToasterService } from './toaster.service'; import { Toast } from './toast'; export declare class ToasterContainerComponent { private ref; private ngZone; private addToastSubscriber; private clearToastsSubscriber; private toasterService; toasterconfig: ToasterConfig; toasts: Toast[]; constructor(toasterService: ToasterService, ref: ChangeDetectorRef, ngZone: NgZone); ngOnInit(): void; click(toast: Toast, isCloseButton?: boolean): boolean; childClick($event: any): void; stopTimer(toast: Toast): void; restartTimer(toast: Toast): void; private registerSubscribers(); private addToast(toast); private configureTimer(toast); private isLimitExceeded(); private removeToast(toast); private removeAllToasts(); private clearToasts(clearWrapper); private clearToastsAction(toastId?); ngOnDestroy(): void; }