mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 04:53:06 +00:00
23 lines
579 B
TypeScript
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;
|
|
}
|
|
}
|