projects/ng-snotify/src/lib/interfaces/snotify-button.interface.ts
Buttons config.
Properties |
action |
action:
|
Type : function
|
Optional |
Action which will be called after buttons click |
bold |
bold:
|
Type : boolean
|
Optional |
Should buttons text be bold. |
text |
text:
|
Type : string
|
Button text |
import { SnotifyToast } from '../models/snotify-toast.model';
/**
* Buttons config.
*/
/**
* Buttons config
*/
export interface SnotifyButton {
/**
* Button text
*/
text: string;
/**
* Action which will be called after buttons click
* @param text? string
* @returns void
*/
action?: (toast: SnotifyToast) => void;
/**
* Should buttons text be bold.
*/
bold?: boolean;
}