Initializer

interface Initializer

Initializer for UI element containers.

Functions

button
Link copied to clipboard
abstract fun button(initializer: Button.Initializer.() -> Unit): Button
Add a new push button.
contactChooser
Link copied to clipboard
abstract fun contactChooser(initializer: ContactChooser.Initializer.() -> Unit): ContactChooser
Add a new contact chooser element.
grid
Link copied to clipboard
abstract fun grid(initializer: Grid.Initializer.() -> Unit): Grid
Add a new sub grid element.
list
Link copied to clipboard
abstract fun <T> list(initializer: ListUi.Initializer<T>.() -> Unit): ListUi<T>
Add a new list view element.
spacer
Link copied to clipboard
abstract fun spacer(initializer: Spacer.Initializer.() -> Unit): Spacer
Add a new spacer element.
textInput
Link copied to clipboard
abstract fun textInput(initializer: TextInput.Initializer.() -> Unit): TextInput
Add a new text input element.
textLabel
Link copied to clipboard
abstract fun textLabel(initializer: TextLabel.Initializer.() -> Unit): TextLabel
Add a new text label element.

Inheritors

Dialog
Link copied to clipboard
Grid
Link copied to clipboard

Extensions

horizontalSpace
Link copied to clipboard
fun UiElementContainer.Initializer.horizontalSpace(): Spacer
Add a new spacer which dominates the width of the parent ui element.
verticalSpace
Link copied to clipboard
fun UiElementContainer.Initializer.verticalSpace(): Spacer
Add a new spacer which dominates the height of the parent ui element.