NotificationService
Provides toast notification functionality.
Example
constructor
method
(i18nService: I18nService, resolver: ComponentFactoryResolver, overlayHostService: OverlayHostService) => NotificationServicesuccess
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.
The types of notification available.
Configuration for a toast notification.
message
property
stringtranslationVars
property
{ [key: string]: string | number }type
property
NotificationTypeduration
property
numberWas this chapter helpful?