File

projects/ng-snotify/src/lib/interfaces/snotify-button.interface.ts

Description

Buttons config.

Index

Properties

Properties

action
action: function
Type : function
Optional

Action which will be called after buttons click

bold
bold: boolean
Type : boolean
Optional

Should buttons text be bold.

text
text: string
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;
}

result-matching ""

    No results matching ""