CloseMethodCompanion

open class CloseMethodCompanion

This class defines helpful methods to either close all currently open (closeAllToasts) or the last created toast (closeLastToast) which can be called via the companion objects of both ToastComponent and AlertToastComponent.

Example:

clickButton {
variant { outline }
text("closeAll")
} handledBy ToastComponent.closeAllToasts()

Constructors

Link copied to clipboard
fun CloseMethodCompanion()

Functions

Link copied to clipboard
fun closeAllToasts(): SimpleHandler<Unit>
Link copied to clipboard
fun closeLastToast(): SimpleHandler<Unit>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard