src/notification/notification-content.interface.ts
Properties |
[key: string]:
|
actions |
actions:
|
Type : NotificationAction[]
|
Optional |
closeLabel |
closeLabel:
|
Type : any
|
Optional |
duration |
duration:
|
Type : number
|
Optional |
lowContrast |
lowContrast:
|
Type : boolean
|
Optional |
message |
message:
|
Type : string
|
Optional |
showClose |
showClose:
|
Type : boolean
|
Optional |
smart |
smart:
|
Type : boolean
|
Optional |
target |
target:
|
Type : string
|
Optional |
template |
template:
|
Type : TemplateRef<any>
|
Optional |
title |
title:
|
Type : string
|
type |
type:
|
Type : string
|
import { Subject } from "rxjs";
import { TemplateRef } from "@angular/core";
export interface NotificationContent {
[key: string]: any;
type: string;
title: string;
target?: string;
duration?: number;
smart?: boolean;
closeLabel?: any;
message?: string;
showClose?: boolean;
lowContrast?: boolean;
template?: TemplateRef<any>;
actions?: NotificationAction[];
}
export interface ToastContent extends NotificationContent {
subtitle: string;
caption: string;
template?: TemplateRef<any>;
}
interface NotificationAction {
text: string;
click: Subject<{event: Event, action: any}> | ((event: {event: Event, action: any}) => any);
[x: string]: any;
}