Package-level declarations

Checkbox, radiobutton and radiobutton group components.

Types

Link copied to clipboard
open class CheckBox(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit? = null) : SimplePanel, BoolFormControl, MutableState<Boolean>

The form field component rendered as HTML input type="checkbox".

Link copied to clipboard
open class CheckBoxInput(value: Boolean = false, className: String? = null, init: CheckBoxInput.() -> Unit? = null) : CheckInput

The basic input component rendered as HTML input type="checkbox".

Link copied to clipboard
abstract class CheckInput(type: CheckInputType = CheckInputType.CHECKBOX, value: Boolean = false, className: String? = null) : Widget, GenericFormComponent<Boolean> , FormInput, MutableState<Boolean>

The basic input component rendered as HTML input type="checkbox" or input type="radio".

Link copied to clipboard

Type of the check input control (checkbox or radio).

Link copied to clipboard

The style (color) of the check input control.

Link copied to clipboard
open class GenericRadioGroup<T>(options: List<<Error class: unknown class><T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, val toStr: (T) -> String = { it.toString() }, val fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroup<T>.() -> Unit? = null) : SimplePanel, GenericFormControl<T> , MutableState<T?>

The generic form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

Link copied to clipboard
open class GenericRadioGroupInput<T>(options: List<<Error class: unknown class><T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, val toStr: (T) -> String = { it.toString() }, val fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroupInput<T>.() -> Unit? = null) : SimplePanel, GenericFormComponent<T?> , FormInput, MutableState<T?>

The generic input component rendered as a group of HTML input type="radio" elements with the same name attribute.

Link copied to clipboard
open class Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit? = null) : SimplePanel, BoolFormControl, MutableState<Boolean>

The form field component rendered as HTML input type="radio".

Link copied to clipboard
open class RadioGroup(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit? = null) : GenericRadioGroup<String> , StringFormControl

The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

Link copied to clipboard

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

Link copied to clipboard
open class RadioInput(value: Boolean = false, className: String? = null, init: RadioInput.() -> Unit? = null) : CheckInput

The basic input component rendered as HTML input type="radio".

Link copied to clipboard
open class Switch(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null) : CheckBox

The form field Bootstrap checkbox component rendered as a switch.

Link copied to clipboard
open class SwitchInput(value: Boolean = false, className: String? = null, init: SwitchInput.() -> Unit? = null) : CheckBoxInput

The basic input Bootstrap checkbox component rendered as a switch.

Link copied to clipboard
open class TriStateCheckBox(value: Boolean? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: TriStateCheckBox.() -> Unit? = null) : SimplePanel, TriStateFormControl, MutableState<Boolean?>

The form field component rendered as HTML input type="checkbox" with tri-state value.

Link copied to clipboard
open class TriStateCheckBoxInput(value: Boolean = false, className: String? = null, init: TriStateCheckBoxInput.() -> Unit? = null) : CheckBoxInput

The basic input component rendered as HTML input type="checkbox" with tri-state value.

Functions

Link copied to clipboard
fun Container.checkBox(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit? = null): CheckBox

DSL builder extension function.

Link copied to clipboard
fun Container.checkBoxInput(value: Boolean = false, className: String? = null, init: CheckBoxInput.() -> Unit? = null): CheckBoxInput

DSL builder extension function.

Link copied to clipboard
fun <T> Container.genericRadioGroup(options: List<<Error class: unknown class><T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, toStr: (T) -> String = { it.toString() }, fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroup<T>.() -> Unit? = null): GenericRadioGroup<T>

DSL builder extension function.

Link copied to clipboard
fun <T> Container.genericRadioGroupInput(options: List<<Error class: unknown class><T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, toStr: (T) -> String = { it.toString() }, fromStr: (String) -> T? = { @Suppress("UNCHECKED_CAST") it as? T }, init: GenericRadioGroupInput<T>.() -> Unit? = null): GenericRadioGroupInput<T>

DSL builder extension function.

Link copied to clipboard
fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit? = null): Radio

DSL builder extension function.

Link copied to clipboard
fun Container.radioGroup(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit? = null): RadioGroup

DSL builder extension function.

Link copied to clipboard
fun Container.radioGroupInput(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: RadioGroupInput.() -> Unit? = null): RadioGroupInput

DSL builder extension function.

Link copied to clipboard
fun Container.radioInput(value: Boolean = false, className: String? = null, init: RadioInput.() -> Unit? = null): RadioInput

DSL builder extension function.

Link copied to clipboard
fun Container.switch(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null): Switch

DSL builder extension function.

Link copied to clipboard
fun Container.switchInput(value: Boolean = false, className: String? = null, init: SwitchInput.() -> Unit? = null): SwitchInput

DSL builder extension function.

Link copied to clipboard
fun Container.triStateCheckBox(value: Boolean? = null, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: TriStateCheckBox.() -> Unit? = null): TriStateCheckBox

DSL builder extension function.

Link copied to clipboard
fun Container.triStateCheckBoxInput(value: Boolean = false, className: String? = null, init: TriStateCheckBoxInput.() -> Unit? = null): TriStateCheckBoxInput

DSL builder extension function.