angular2-notifications-zth
Version:
> A light and easy to use notifications library for Angular 2. ~~It features both regular page notifications (toasts) and push notifications.~~
49 lines (48 loc) • 1.56 kB
TypeScript
import { ChangeDetectorRef, NgZone, OnDestroy, OnInit } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { Notification } from '../../interfaces/notification.type';
import { NotificationsService } from '../../services/notifications.service';
export declare class NotificationComponent implements OnInit, OnDestroy {
private notificationService;
private domSanitizer;
private cdr;
private zone;
timeOut: number;
showProgressBar: boolean;
pauseOnHover: boolean;
clickToClose: boolean;
clickIconToClose: boolean;
maxLength: number;
theClass: string;
rtl: boolean;
animate: string;
position: number;
item: Notification;
title: any;
content: any;
titleIsTemplate: boolean;
contentIsTemplate: boolean;
htmlIsTemplate: boolean;
progressWidth: number;
safeSvg: SafeHtml;
private stopTime;
private timer;
private framesPerSecond;
private sleepTime;
private startTime;
private endTime;
private icon;
constructor(notificationService: NotificationsService, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef, zone: NgZone);
ngOnInit(): void;
ngOnDestroy(): void;
trustInputHtml(): SafeHtml;
startTimeOut(): void;
onEnter(): void;
onLeave(): void;
onClick($e: MouseEvent): void;
onClickIcon($e: MouseEvent): void;
attachOverrides(): void;
private instance;
private remove();
private contentType(item, key);
}