kvision / pl.treksoft.kvision.form.check

Package pl.treksoft.kvision.form.check

Checkbox, radiobutton and radiobutton group components.

Types

CheckBox

open class CheckBox : SimplePanel, BoolFormControl

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

CheckBoxInput

open class CheckBoxInput : CheckInput

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

CheckBoxStyle

enum class CheckBoxStyle

Checkbox style options.

CheckInput

abstract class CheckInput : Widget, FormInput

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

CheckInputType

enum class CheckInputType

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

Radio

open class Radio : SimplePanel, BoolFormControl

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

RadioGroup

open class RadioGroup : SimplePanel, StringFormControl

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

RadioGroupInput

open class RadioGroupInput : SimplePanel, FormInput

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

RadioInput

open class RadioInput : CheckInput

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

RadioStyle

enum class RadioStyle

Radio style options.

Functions

checkBox

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

DSL builder extension function.

checkBoxInput

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

DSL builder extension function.

radio

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

DSL builder extension function.

radioGroup

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

DSL builder extension function.

radioGroupInput

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

DSL builder extension function.

radioInput

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

DSL builder extension function.