kvision / pl.treksoft.kvision.form.check

Package pl.treksoft.kvision.form.check

Checkbox, radiobutton and radiobutton group components.

Types

(js)

CheckBox

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

open class CheckBox : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

CheckBoxInput

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

open class CheckBoxInput : CheckInput
(js)

CheckBoxStyle

Checkbox style options.

enum class CheckBoxStyle
(js)

CheckInput

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

abstract class CheckInput : Widget, FormInput, ObservableState<Boolean>
(js)

CheckInputType

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

enum class CheckInputType
(js)

Radio

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

open class Radio : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

RadioGroup

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

open class RadioGroup : SimplePanel, StringFormControl, ObservableState<String?>
(js)

RadioGroupInput

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

open class RadioGroupInput : SimplePanel, FormInput, ObservableState<String?>
(js)

RadioInput

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

open class RadioInput : CheckInput
(js)

RadioStyle

Radio style options.

enum class RadioStyle

Functions

(js)

checkBox

DSL builder extension function.

fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox
(js)

checkBoxInput

DSL builder extension function.

fun Container.checkBoxInput(value: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (CheckInput.() -> Unit)? = null): CheckBoxInput
(js)

radio

DSL builder extension function.

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

radioGroup

DSL builder extension function.

fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: (RadioGroup.() -> Unit)? = null): RadioGroup
(js)

radioGroupInput

DSL builder extension function.

fun Container.radioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: (RadioGroupInput.() -> Unit)? = null): RadioGroupInput
(js)

radioInput

DSL builder extension function.

fun Container.radioInput(value: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (CheckInput.() -> Unit)? = null): RadioInput