Notifications test final

This commit is contained in:
Andrea Chiapparelli - 4Science
2018-04-05 17:35:49 +02:00
parent b03acc8a3f
commit 548aafcf62
11 changed files with 251 additions and 194 deletions

View File

@@ -86,7 +86,7 @@ export class NotificationComponent implements OnInit, OnDestroy {
this.contentType(this.item.html, 'html');
}
startTimeOut(): void {
private startTimeOut(): void {
this.steps = this.item.options.timeOut / 10;
this.speed = this.item.options.timeOut / this.steps;
this.start = new Date().getTime();
@@ -149,7 +149,7 @@ export class NotificationComponent implements OnInit, OnDestroy {
this[key + 'IsTemplate'] = item instanceof TemplateRef;
}
setAnimationOut() {
private setAnimationOut() {
this.animate = this.item.options.animate + NotificationAnimationsStatus.Out;
this.cdr.detectChanges();
}