From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+
+ Constructor Overrides FormControl.blur Makes the input element blur. The additional String value used for the radio button group. Overrides FormControl.flabel Form field label. Overrides FormControl.focus Makes the input element focused. Overrides Widget.getSnClass Returns list of CSS class names for current widget in the form of a List. Return The form field component rendered as HTML input type="radio". The additional String value used for the radio button group. Form field label. Determines if the radio button is rendered inline. The actual input component. The label text bound to the input element. Determines if label can contain HTML code. Determines if the radio button is rendered as a square. The value attribute of the generated HTML input element. The style (one of Bootstrap standard colors) of the input. Validation info component. The selection state of the radio button. Makes the input element blur. Makes the input element focused. Returns list of CSS class names for current widget in the form of a List. A convenient helper for easy setting onClick event handler. Removes all event listeners from current widget. Sets an event listener for current widget, keeping the actual type of component. Sets an event listener for current widget. Adds given component to the current container. Adds a list of components to the current container. Protected and final method to add given component to the current container. Returns the array of the children Snabbdom vnodes. Returns a list of children of the current container. Returns the value of the control. Returns the value of the control as a String. Removes given component from the current container. Removes all children from the current container. Renders current component as a Snabbdom vnode. Sets the value of the control. DSL builder extension function. Determines if the radio button is rendered inline. Getter Determines if the radio button is rendered inline.
+
+<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
+
+
+blur
+
+open fun blur(): Unit
+
+
+extraValue
+
+var extraValue: String?
+
+
+flabel
+
+val flabel: FieldLabel
+
+
+focus
+
+open fun focus(): Unit
+
+
+getSnClass
+
+protected open fun getSnClass(): List<StringBoolPair>
+
+list of CSS class names
+
+Radio
+open class Radio : SimplePanel, BoolFormControl
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+Radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)Properties
+
+
+
+
+
+
+
+
+
+
+var extraValue: String?
+
+
+
+
+
+
+
+val flabel: FieldLabel
+
+
+
+
+
+
+
+var inline: Boolean
+
+
+
+
+
+
+
+val input: CheckInput
+
+
+
+
+
+
+
+var label: String?
+
+
+
+
+
+
+
+var rich: Boolean
+
+
+
+
+
+
+
+var squared: Boolean
+
+
+
+
+
+
+
+var startValue: Boolean
+
+
+
+
+
+
+
+var style: RadioStyle?
+
+
+
+
+
+
+
+val validationInfo: HelpBlock
+
+
+
+
+
+
+
+
+open var value: Boolean
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun blur(): Unit
+
+
+
+
+
+
+
+open fun focus(): Unit
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
+
+
+
+
+
+
+
+open fun removeEventListeners(): Widget
+
+
+
+
+
+
+
+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+open fun add(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun addAll(children: List<Component>): SimplePanel
+
+
+
+
+
+
+
+fun addInternal(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun childrenVNodes(): Array<VNode>
+
+
+
+
+
+
+
+open fun getChildren(): List<Component>
+
+
+
+
+
+
+
+open fun getValue(): Boolean
+
+
+
+
+
+
+
+open fun getValueAsString(): String?
+
+
+
+
+
+
+
+open fun remove(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun removeAll(): SimplePanel
+
+
+
+
+
+
+
+open fun render(): VNode
+
+
+
+
+
+
+
+
+open fun setValue(v: Any?): Unit
+Companion Object Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.form.check/-radio/inline.html b/api/pl.treksoft.kvision.form.check/-radio/inline.html
new file mode 100644
index 00000000..2af48163
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.check/-radio/inline.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit = null): Radio
+
+
+inline
+
+var inline: Boolean
+
+
Setter
+
Determines if the radio button is rendered inline.
+ + + diff --git a/api/pl.treksoft.kvision.form.check/-radio/input.html b/api/pl.treksoft.kvision.form.check/-radio/input.html new file mode 100644 index 00000000..d7c2a1d9 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/label.html b/api/pl.treksoft.kvision.form.check/-radio/label.html new file mode 100644 index 00000000..b80dd44f --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/on-click.html b/api/pl.treksoft.kvision.form.check/-radio/on-click.html new file mode 100644 index 00000000..7ea9c764 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/radio.html b/api/pl.treksoft.kvision.form.check/-radio/radio.html new file mode 100644 index 00000000..5f842c88 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/radio.html @@ -0,0 +1,16 @@ + + + +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.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html b/api/pl.treksoft.kvision.form.check/-radio/remove-event-listeners.html new file mode 100644 index 00000000..793b6635 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html b/api/pl.treksoft.kvision.form.check/-radio/set-event-listener.html new file mode 100644 index 00000000..db72a974 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/squared.html b/api/pl.treksoft.kvision.form.check/-radio/squared.html
new file mode 100644
index 00000000..108305be
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.check/-radio/squared.html
@@ -0,0 +1,21 @@
+
+
+
+var squared: Boolean
+Determines if the radio button is rendered as a square.
+Getter
+
Determines if the radio button is rendered as a square.
+ +Setter
+
Determines if the radio button is rendered as a square.
+ + + diff --git a/api/pl.treksoft.kvision.form.check/-radio/start-value.html b/api/pl.treksoft.kvision.form.check/-radio/start-value.html new file mode 100644 index 00000000..d9e8e9a6 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/style.html b/api/pl.treksoft.kvision.form.check/-radio/style.html new file mode 100644 index 00000000..d5063f77 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/style.html @@ -0,0 +1,21 @@ + + + +var style: RadioStyle?
+The style (one of Bootstrap standard colors) of the input.
+Getter
+
The style (one of Bootstrap standard colors) of the input.
+ +Setter
+
The style (one of Bootstrap standard colors) of the input.
+ + + diff --git a/api/pl.treksoft.kvision.form.check/-radio/validation-info.html b/api/pl.treksoft.kvision.form.check/-radio/validation-info.html new file mode 100644 index 00000000..6464d415 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.check/-radio/value.html b/api/pl.treksoft.kvision.form.check/-radio/value.html new file mode 100644 index 00000000..026e80e9 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio/value.html @@ -0,0 +1,16 @@ + + + +open var value: Boolean
+Overrides BoolFormControl.value
+The selection state of the radio button.
+ + -- cgit