open class RadioGroup : SimplePanel, StringFormControl
The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.
The radio group can be populated directly from options parameter or manually by adding Radio components to the container.
RadioGroup(options: List<StringPair>? = null, value: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false) |
open var disabled: Boolean
Determines if the field is disabled. |
|
val flabel: FieldLabel
Form field label. |
|
var inline: Boolean
Determines if the options are rendered inline. |
|
val input: Widget
The actual input component. |
|
var label: String?
The label text of the options group. |
|
var options: List<StringPair>?
A list of options (label to value pairs) for the group. |
|
var rich: Boolean
Determines if label can contain HTML code. |
|
open var size: INPUTSIZE?
Input control size. |
|
val validationInfo: HelpBlock
Validation info component. |
|
open var value: String?
A value of the selected option. |
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
open fun add(child: Component): SimplePanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): SimplePanel
Adds a list of components to the current container. |
|
fun addInternal(child: Component): SimplePanel
Protected and final method to add given component to the current container. |
|
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open fun getValue(): String?
Returns the value of the control. |
|
open fun getValueAsString(): String?
Returns the value of the control as a String. |
|
open fun remove(child: Component): SimplePanel
Removes given component from the current container. |
|
open fun removeAll(): SimplePanel
Removes all children from the current container. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
|
open fun setValue(v: Any?): Unit
Sets the value of the control. |
fun Container.radioGroup(options: List<StringPair>? = null, value: String? = null, inline: Boolean = false, label: String? = null, rich: Boolean = false, init: RadioGroup.() -> Unit = null): Unit
DSL builder extension function |