Files
dspace-angular/src/app/shared/notifications/models/notification-options.model.ts
Andrea Chiapparelli - 4Science 21d0b74a77 timeout 5s
2018-03-08 18:23:05 +01:00

23 lines
579 B
TypeScript

import { NotificationAnimationsType } from './notification-animations-type';
export interface INotificationOptions {
timeOut: number;
clickToClose: boolean;
animate: NotificationAnimationsType;
}
export class NotificationOptions implements INotificationOptions {
public timeOut: number;
public clickToClose: boolean;
public animate: any;
constructor(timeOut = 5000,
clickToClose = true,
animate = NotificationAnimationsType.Scale) {
this.timeOut = timeOut;
this.clickToClose = clickToClose;
this.animate = animate;
}
}