showToast
fun showToast(message: String, buttonLabel: String? = null, animation: ToastAnimation? = null, timeout: Int? = 2000, force: Boolean = false, id: String? = null, className: String? = null, modifier: String? = null, callback: () -> Unit? = null): Promise<Int>(source)
Displays toast notification.
Parameters
message
a notification message
buttonLabel
a label of the button
animation
the animation type
timeout
a number of milliseconds where the toast is visible before hiding automatically
force
whether toast skips the notification queue and is shown immediately
id
the id of the notification HTML element
className
the CSS class of the notification HTML element
modifier
a modifier attribute to specify custom styles
callback
a callback function called after the toast has been closed