Toast

open class Toast(animation: ToastAnimation? = null, className: String? = null, init: Toast.() -> Unit? = null)

A toast component.

Parameters

animation

the type of animation

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(animation: ToastAnimation? = null, className: String? = null, init: Toast.() -> Unit? = null)

Creates a toast component.

Properties

Link copied to clipboard

The type of animation.

Link copied to clipboard

A dynamic property returning whether the toast is visible.

Link copied to clipboard
open var parent: <Error class: unknown class>?

Functions

Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun clearParent()
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun getRoot(): <Error class: unknown class>?
Link copied to clipboard
open fun hideToast(options: dynamic = undefined): <Error class: unknown class><Unit>?

Hides the toast.

Link copied to clipboard
open fun onDeviceBackButton(callback: (event: BackButtonEvent) -> Unit)

Sets device back button event listener.

Link copied to clipboard

Clears device back button event listener.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun showToast(options: dynamic = undefined): <Error class: unknown class><Unit>?

Shows the toast.