@fradev/ng-snotify
Version:
Angular 2+ notifications center
27 lines (26 loc) • 517 B
TypeScript
import { SnotifyToast } from '../toast/snotify-toast.model';
/**
* Buttons config.
*/
/**
* Buttons config
*/
export interface SnotifyButton {
/**
* Button text
* @type {string}
*/
text: string;
/**
* Action which will be called after button click
* @type {function}
* @param text? {string}
* @returns {void}
* @default this.remove(id)
*/
action?: (toast: SnotifyToast) => void;
/**
* Should button text be bold.
*/
bold?: boolean;
}