The Toast is a UI component that displays pop-up notifications.
When you need to display a notification, call the notify(message, type, displayTime) method with values for the message, type, and displayTime properties passed as arguments.
You can specify one of the four predefined types of notifications, depending on the mood of the message:
A blue toast with a message bubble icon.
A yellow toast with an exclamation mark icon.
A red toast with an X icon.
A green toast with a check mark icon.
In this demo, toggle check boxes to see the 'success' and 'error' notification types.
You can also customize the Toast appearance. Set the type property to 'custom' and use a contentTemplate. Refer to the following topic for more information: Customize the Content.
If you need to specify other Toast properties in addition to type and displayTime, call the notify(options, type, displayTime) method and pass an object as the argument. In this object, you can set any Toast property, such as shading, position, width, height, and others.