Skip to content
Edit this page

SiToastNotificationService documentation

import { SiToastNotificationService } from '@siemens/element-ng/toast-notification';

Attributes and Methods

Name Type Description
(readonly)activeToasts
SiToast[]

List of currently active toasts to see details or close them.

hideToastNotification()
(toast?: SiToast) => void

Hide a toast notification

Parameters
queueToastNotification()
(state: StatusType, title: string, message: string, disableAutoClose?: boolean, disableManualClose?: boolean, action?: Link, translationParams?: { [key: string]: any; }) => SiToast

Queue a new toast to be shown.

Returns: the toast object

Parameters
showToastNotification()
(toast: SiToast) => SiToast

Show a toast notification

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

    toast : SiToast

Types Documentation

import type { Link } from '@siemens/element-ng/link';

import type { SiToast } from '@siemens/element-ng/toast-notification';

StatusType

'success' | 'info' | 'warning' | 'danger' | 'caution' | 'critical'
type alias
import type { StatusType } from '@siemens/element-ng/common';

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

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.


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