Skip to content

SiToastNotificationService documentation

provided in root

Attributes and Methods

NameTypeDefaultDescription
activeToasts
SiToast[][]List of currently active toasts to see details or close them.
hideToastNotification(...)
(toast: SiToast) => voidHide a toast notification

Parameters
queueToastNotification(...)
(state: ToastStateName, title: string, message: string, disableAutoClose: boolean, disableManualClose: boolean, action: Link) => SiToastQueue a new toast to be shown.
Returns the toast object

Parameters
showToastNotification(...)
(toast: SiToast) => SiToastShow a toast notification

Parameters
  • toast: SiToast  The toast object of the toast to be shown, can also be constructed while calling this.

Types Documentation

Properties
action?: Link
close?: () => void
closeAriaLabel?: TranslatableString
disableAutoClose?: boolean
disableManualClose?: boolean
hidden?: Subject<void>
message: TranslatableString
state: ToastStateName
timeout?: number
title: TranslatableString
translationParams?: { [ key: string ]: any } }
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality.
Translatable
import
("success" | "info" | "warning" | "danger" | "caution" | "critical")

Except where otherwise noted, content on this site is licensed under MIT License.