toast
Ui
Displays a toast message. The message appears and disappears after the specified duration.
$m.toast("Order 10045 is saved."); |
Syntax
$m.toast([message,duration])
Parameters
message
string (optional)
The text to be shown as toast message.
duration
number (optional)
The duration for which the toast should be shown. Supported values are,
- $m.TOAST_DURATION_SHORT - 0. Displays the toast for lesser duration. Default.
- $m.TOAST_DURATION_LONG - 1. Displays the toast for longer duration.