Initializer

interface Initializer<T> : UiElementContainer.Initializer

Initializer for a dialog window.

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.
resetResult
Link copied to clipboard
abstract fun resetResult()
Set the dialog result to null.
setResult
Link copied to clipboard
abstract fun setResult(result: T)
Set the result of the dialog.
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 for the window.
dialog
Link copied to clipboard
abstract val dialog: Dialog<T>
Reference to the created dialog, which may be used in callback functions.