UNPKG

ng2-yk-notifier

Version:
23 lines (18 loc) 559 B
/** * notifier-options.service */ import { Injectable } from '@angular/core'; @Injectable() 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); } }