UNPKG

vue-snotify

Version:
31 lines (30 loc) 590 B
import { SnotifyToast } from '../components/toast.model'; /** * Buttons config. */ /** * Buttons config */ export interface SnotifyButton { /** * SnotifyButton 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; /** * Additional className. */ className?: string; }