UNPKG

ng2-yk-notifier

Version:
31 lines (27 loc) 627 B
/** * notification.model */ import { uuid } from "./uuid"; export class Notice { id: string; type: string; title: string; content: string; icon: string; state: string; config: any = { animate: 'fade', clickToClose: true, pauseOnHover: true, notifierLife: 3000, titleClass: '', messageClass: '', }; constructor( type: string, content: string, title?: string, icon?: string ) { this.id = uuid(); this.type = type; this.content = content; this.title = title || null; this.icon = icon || null; } }