ng2-yk-notifier
Version:
Angular2 Notification Component
23 lines (18 loc) • 559 B
text/typescript
/**
* notifier-options.service
*/
import { Injectable } from '@angular/core';
()
export class NotifierOptions {
animate?: 'flyRight' | 'flyLeft' | 'rotate' | 'scale' | 'fade' = 'flyRight';
clickToClose?: boolean = true;
maxStack?: number = 5;
pauseOnHover?: boolean = true;
position?: ['top' | 'bottom', 'right' | 'left' | 'center'] = ['bottom', 'right'];
notifierLife?: number = 0;
titleClass?: string;
messageClass?: string;
constructor( options: Object ) {
Object.assign(this, options);
}
}