InlineModal

class InlineModal(val builder: ModalBuilder)(source)

Constructors

Link copied to clipboard
constructor(builder: ModalBuilder)

Properties

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

Title of this Modal, see Modal.Builder.setTitle

Functions

Link copied to clipboard
fun bindTo(handler: suspend (ModalEvent) -> Unit)

Binds the action to the closure.

fun bindTo(handlerName: String, vararg userData: Any?): ModalBuilder
fun bindTo(handlerName: String, userData: List<Any?>)

Binds the action to a @ModalHandler with its arguments.

Link copied to clipboard
fun build(): Modal
Link copied to clipboard
inline fun label(label: String?, uniqueId: Int = -1, description: String? = null, child: LabelChildComponent? = null, block: InlineLabel.() -> Unit = {})

Component that contains a label, an optional description, and a child component, see Label.

Link copied to clipboard
inline fun text(content: String? = null, uniqueId: Int = -1, block: InlineTextDisplay.() -> Unit = {})
Link copied to clipboard
fun timeout(timeout: Duration, onTimeout: suspend () -> Unit? = null)

Sets the timeout for this modal, invalidating the modal after expiration, and running the given timeout handler.

Link copied to clipboard