CheckBoxElement

data class CheckBoxElement(val checked: Boolean, val onClick: () -> Unit) : UiElement.Interactive

Checkbox form element.

Constructors

Link copied to clipboard
constructor(checked: Boolean, onClick: () -> Unit)

Properties

Link copied to clipboard

Whether the box currently is marked.

Link copied to clipboard
val onClick: () -> Unit

Invoked when the checkbox is clicked.

Functions

Link copied to clipboard
inline fun <T : UiElement> UiElement.renderWithType(block: T.() -> Unit): RenderResult