From d8cd67062b8de6e8398dc6dfd00d201200c82414 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+
+ Constructor Overrides FormControl.disabled Determines if the field is disabled. Getter Determines if the field is disabled.
+
+<init>
+
+Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+Parameters
+
+extraValue
- the additional String value used for the radio button groupname
- the name attribute of the generated HTML input elementlabel
- label text bound to the input elementrich
- determines if label can contain HTML code
+
+
+disabled
+
+open var disabled: Boolean
+
+
Setter
+
Determines if the field is disabled.
+ + + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/extra-value.html b/docs/api/pl.treksoft.kvision.form.check/-radio/extra-value.html new file mode 100644 index 00000000..65bfd84c --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/extra-value.html @@ -0,0 +1,15 @@ + + + +var extraValue: String?
+The additional String value used for the radio button group.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/flabel.html b/docs/api/pl.treksoft.kvision.form.check/-radio/flabel.html new file mode 100644 index 00000000..538181c7 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/flabel.html @@ -0,0 +1,16 @@ + + + +val flabel: FieldLabel
+Overrides FormControl.flabel
+Form field label.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html b/docs/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html new file mode 100644 index 00000000..4e585f76 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/get-sn-class.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
open class Radio : SimplePanel, BoolFormControl
+The form field component rendered as HTML input type="radio".
++ + | +
+Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) |
+
+ + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
+ + | +
+var extraValue: String?
+The additional String value used for the radio button group. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+var inline: Boolean
+Determines if the radio button is rendered inline. + |
+
+ + | +
+val input: CheckInput
+The actual input component. + |
+
+ + | +
+var label: String?
+The label text bound to the input element. + |
+
+ + | +
+var name: String?
+The name attribute of the generated HTML input element. + |
+
+ + | +
+var rich: Boolean
+Determines if label can contain HTML code. + |
+
+ + | +
+open var size: INPUTSIZE?
+The size of the input. + |
+
+ + | +
+var squared: Boolean
+Determines if the radio button is rendered as a square. + |
+
+ + | +
+var startValue: Boolean
+The value attribute of the generated HTML input element. + |
+
+ + | +
+var style: RADIOSTYLE?
+The style (one of Bootstrap standard colors) of the input. + |
+
+ + | +
+val validationInfo: HelpBlock
+Validation info component. + |
+
+ + | +
+open var value: Boolean
+The selection state of the radio button. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
+A convenient helper for easy setting onClick event handler. + |
+
+ + | +
+open fun removeEventListeners(): Widget
+Removes all event listeners from current widget. + |
+
+ + | +
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Sets an event listener for current widget, keeping the actual type of component. +open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Sets an event listener for current widget. + |
+
+ + | +
+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(): Boolean
+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. + |
+
var inline: Boolean
+Determines if the radio button is rendered inline.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/input.html b/docs/api/pl.treksoft.kvision.form.check/-radio/input.html new file mode 100644 index 00000000..d7c2a1d9 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/input.html @@ -0,0 +1,16 @@ + + + +val input: CheckInput
+Overrides FormControl.input
+The actual input component.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/label.html b/docs/api/pl.treksoft.kvision.form.check/-radio/label.html new file mode 100644 index 00000000..b80dd44f --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/label.html @@ -0,0 +1,15 @@ + + + +var label: String?
+The label text bound to the input element.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/name.html b/docs/api/pl.treksoft.kvision.form.check/-radio/name.html new file mode 100644 index 00000000..06afc43d --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/name.html @@ -0,0 +1,15 @@ + + + +var name: String?
+The name attribute of the generated HTML input element.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/on-click.html b/docs/api/pl.treksoft.kvision.form.check/-radio/on-click.html new file mode 100644 index 00000000..7ea9c764 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/on-click.html @@ -0,0 +1,15 @@ + + + +open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
+A convenient helper for easy setting onClick event handler.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html b/docs/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html new file mode 100644 index 00000000..793b6635 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html @@ -0,0 +1,18 @@ + + + +open fun removeEventListeners(): Widget
+Overrides Widget.removeEventListeners
+Removes all event listeners from current widget.
+Return
+current widget
var rich: Boolean
+Determines if label can contain HTML code.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html b/docs/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html new file mode 100644 index 00000000..db72a974 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html @@ -0,0 +1,54 @@ + + + +open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Overrides Widget.setEventListener
+Sets an event listener for current widget, keeping the actual type of component.
+Return
+
current widget
+ + +Example:
+ + + button.setEventListener<Button> {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Button here
+ }
+ }
+
+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Overrides Widget.setEventListener
+Sets an event listener for current widget.
+Return
+
current widget
+ + +Example:
+ + + button.setEventListener {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Widget here
+ }
+ }
+
+
diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/size.html b/docs/api/pl.treksoft.kvision.form.check/-radio/size.html
new file mode 100644
index 00000000..173c0b83
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.form.check/-radio/size.html
@@ -0,0 +1,22 @@
+
+
+
+open var size: INPUTSIZE?
+Overrides FormControl.size
+The size of the input.
+Getter
+
Input control size.
+ +Setter
+
Input control size.
+ + + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/squared.html b/docs/api/pl.treksoft.kvision.form.check/-radio/squared.html new file mode 100644 index 00000000..dcdcc379 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/squared.html @@ -0,0 +1,15 @@ + + + +var squared: Boolean
+Determines if the radio button is rendered as a square.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/start-value.html b/docs/api/pl.treksoft.kvision.form.check/-radio/start-value.html new file mode 100644 index 00000000..d9e8e9a6 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/start-value.html @@ -0,0 +1,17 @@ + + + +var startValue: Boolean
+The value attribute of the generated HTML input element.
+This value is placed directly in generated HTML code, while the value property is dynamically +bound to the input selection state.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/style.html b/docs/api/pl.treksoft.kvision.form.check/-radio/style.html new file mode 100644 index 00000000..309ff5de --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/style.html @@ -0,0 +1,15 @@ + + + +var style: RADIOSTYLE?
+The style (one of Bootstrap standard colors) of the input.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/validation-info.html b/docs/api/pl.treksoft.kvision.form.check/-radio/validation-info.html new file mode 100644 index 00000000..6464d415 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/validation-info.html @@ -0,0 +1,16 @@ + + + +val validationInfo: HelpBlock
+Overrides FormControl.validationInfo
+Validation info component.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.check/-radio/value.html b/docs/api/pl.treksoft.kvision.form.check/-radio/value.html new file mode 100644 index 00000000..b29124c1 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.check/-radio/value.html @@ -0,0 +1,22 @@ + + + +open var value: Boolean
+Overrides BoolFormControl.value
+The selection state of the radio button.
+Getter
+
Boolean value.
+ +Setter
+
Boolean value.
+ + + -- cgit