Initializer

interface Initializer : UiElementContainer.Initializer

Initializer for a grid.

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.

Properties

caption
Link copied to clipboard
abstract var caption: UiString?
The caption of the grid.
defaultItemSpan
Link copied to clipboard
abstract var defaultItemSpan: Grid.Span
The item span if nothing is specified for a given item.
defaultItemStep
Link copied to clipboard
abstract var defaultItemStep: Grid.Pos
These position components are added to the position of the last UI element if a new UI element is added without a position specification.

Extensions

orientationHorizontal
Link copied to clipboard
fun Grid.Initializer.orientationHorizontal(isLeftToRight: Boolean = true)
Set the item step of a grid so that new items are always positioned in the next column (respecting isLeftToRight argument).
orientationVertical
Link copied to clipboard
fun Grid.Initializer.orientationVertical(isTopToBottom: Boolean = true)
Set the item step of a grid so that new items are always positioned in the next row (respecting isTopToBottom argument).