NotificationService
NotificationService
Provides toast notification functionality.
Example
success
method
(message: string, translationVars?: { [key: string]: string | number }) => voidDisplay a success toast notification
info
method
(message: string, translationVars?: { [key: string]: string | number }) => voidDisplay an info toast notification
warning
method
(message: string, translationVars?: { [key: string]: string | number }) => voidDisplay a warning toast notification
error
method
(message: string, translationVars?: { [key: string]: string | number }) => voidDisplay an error toast notification
notify
method
(config: ToastConfig) => voidDisplay a toast notification.
NotificationType
The types of notification available.
ToastConfig
Configuration for a toast notification.
message
property
stringtranslationVars
property
{ [key: string]: string | number }type
property
NotificationTypeduration
property
numberWas this chapter helpful?