UNPKG

notify-angular

Version:

Simple yet customizable notifications for Angular2+, well suited in combination with Material Design

27 lines (23 loc) 651 B
export interface AppNotification { type: NotificationType; message: string; timer: number; // in milliseconds withShadow: boolean; color: string; // css color property background: string; // css background property position: NotificationPosition; } export interface NotifyOptions { timer?: number; // in milliseconds withShadow?: boolean; color?: string; // css color property background?: string; // css background property position?: NotificationPosition; } export type NotificationType = 'success' | 'error'; export interface NotificationPosition { bottom?: number; right?: number; top?: number; left?: number; }