toast

fun <E : HTMLElement> toast(containerName: String, duration: Long = 5000, classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, tag: TagFactory<Tag<E>>, initialize: Toast<E>.() -> Unit)

Factory function to create a Toast.

API-Sketch:

toastPosition() // use for each position that should be available
toast() { // use for each new toast
toastCloseButton() { close ->
}
}

For more information refer to the official documentation

Parameters

containerName

refer to the container the toast should be stored in

duration

the duration a toast should be displayed on the screen


fun toast(containerName: String, duration: Long = 5000, classes: String? = null, id: String? = null, scope: ScopeContext.() -> Unit = {}, initialize: Toast<HTMLLIElement>.() -> Unit)

Factory function to create a Toast with an HTMLLIElement as default root Tag.

API-Sketch:

toastPosition() // use for each position that should be available
toast() { // use for each new toast
toastCloseButton() { close ->
}
}

For more information refer to the official documentation

Parameters

containerName

refer to the container the toast should be stored in

duration

the duration a toast should be displayed on the screen