Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface describing an action linked to a notification.

Hierarchy

  • IAction

Index

Properties

callback

callback: (event: MouseEvent) => void

Type declaration

    • (event: MouseEvent): void
    • Callback function to trigger

      Notes

      By default execution of the callback will close the toast and dismiss the notification. You can prevent this by calling event.preventDefault() in the callback.

      Parameters

      • event: MouseEvent

      Returns void

Optional caption

caption: string

The action caption.

This can be a longer description of the action.

Optional displayType

displayType: ActionDisplayType

The action display type.

This will be used to modify the action button style.

label

label: string

The action label.

This should be a short description.

Generated using TypeDoc