From 7c2850063697f94a0d8b8d8f8588136dd4b3d05e Mon Sep 17 00:00:00 2001
From: Robert Jaros
-
-
- Constructor Overrides FormControl.blur Makes the input element blur. DSL builder extension function. It takes the same parameters as the constructor of the built component. Determines if the checkbox is rendered as a circle. Getter Determines if the checkbox is rendered as a circle.
-
-<init>
-
-CheckBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false)
-Parameters
-
-name - the name of the input elementlabel - label text bound to the input elementrich - determines if label can contain HTML code
-
-
-blur
-
-open fun blur(): Unit
-
-
-checkBox
-
-fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit = null): CheckBox
-
-
-circled
-
-var circled: Boolean
-
-
Setter
-
Determines if the checkbox is rendered as a circle.
- - - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/flabel.html b/api/pl.treksoft.kvision.form.check/-check-box/flabel.html deleted file mode 100644 index 75f0444f..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/flabel.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -val flabel: FieldLabel
-Overrides FormControl.flabel
-Form field label.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/focus.html b/api/pl.treksoft.kvision.form.check/-check-box/focus.html deleted file mode 100644 index 13d5d003..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/focus.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -open fun focus(): Unit
-Overrides FormControl.focus
-Makes the input element focused.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/get-sn-class.html b/api/pl.treksoft.kvision.form.check/-check-box/get-sn-class.html deleted file mode 100644 index 096322d7..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/get-sn-class.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -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 CheckBox : SimplePanel, BoolFormControl
-The form field component rendered as HTML input type="checkbox".
-| - - | -
-CheckBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false) |
-
| - - | -
-var circled: Boolean
-Determines if the checkbox is rendered as a circle. - |
-
| - - | -
-val flabel: FieldLabel
-Form field label. - |
-
| - - | -
-var inline: Boolean
-Determines if the checkbox is rendered inline. - |
-
| - - | -
-val input: CheckInput
-The actual input component. - |
-
| - - | -
-var label: String?
-The label text bound to the input element. - |
-
| - - | -
-var rich: Boolean
-Determines if label can contain HTML code. - |
-
| - - | -
-var startValue: Boolean
-The value attribute of the generated HTML input element. - |
-
| - - | -
-var style: CheckBoxStyle?
-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 checkbox. - |
-
| - - | -
-open fun blur(): Unit
-Makes the input element blur. - |
-
| - - | -
-open fun focus(): Unit
-Makes the input element focused. - |
-
| - - | -
-open fun getSnClass(): List<StringBoolPair>
-Returns list of CSS class names for current widget in the form of a List. - |
-
| - - | -
-open fun onClick(handler: CheckBox.(MouseEvent) -> Unit): CheckBox
-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. - |
-
| - - | -
-fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: CheckBox.() -> Unit = null): CheckBox
-DSL builder extension function. - |
-
var inline: Boolean
-Determines if the checkbox is rendered inline.
-Getter
-
Determines if the checkbox is rendered inline.
- -Setter
-
Determines if the checkbox is rendered inline.
- - - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/input.html b/api/pl.treksoft.kvision.form.check/-check-box/input.html deleted file mode 100644 index 95850692..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/input.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -val input: CheckInput
-Overrides FormControl.input
-The actual input component.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/label.html b/api/pl.treksoft.kvision.form.check/-check-box/label.html deleted file mode 100644 index 7cda3b63..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/label.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var label: String?
-The label text bound to the input element.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/on-click.html b/api/pl.treksoft.kvision.form.check/-check-box/on-click.html deleted file mode 100644 index 21a05b0a..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/on-click.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun onClick(handler: CheckBox.(MouseEvent) -> Unit): CheckBox
-A convenient helper for easy setting onClick event handler.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listeners.html b/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listeners.html deleted file mode 100644 index de175e54..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listeners.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -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/-check-box/set-event-listener.html b/api/pl.treksoft.kvision.form.check/-check-box/set-event-listener.html deleted file mode 100644 index a47d91c9..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/set-event-listener.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -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/-check-box/start-value.html b/api/pl.treksoft.kvision.form.check/-check-box/start-value.html
deleted file mode 100644
index 8b375beb..00000000
--- a/api/pl.treksoft.kvision.form.check/-check-box/start-value.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-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/-check-box/style.html b/api/pl.treksoft.kvision.form.check/-check-box/style.html deleted file mode 100644 index aac0735f..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/style.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -var style: CheckBoxStyle?
-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/-check-box/validation-info.html b/api/pl.treksoft.kvision.form.check/-check-box/validation-info.html deleted file mode 100644 index 881e33ea..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/validation-info.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -val validationInfo: HelpBlock
-Overrides FormControl.validationInfo
-Validation info component.
- - diff --git a/api/pl.treksoft.kvision.form.check/-check-box/value.html b/api/pl.treksoft.kvision.form.check/-check-box/value.html deleted file mode 100644 index 79ac64e8..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-box/value.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -open var value: Boolean
-Overrides BoolFormControl.value
-The selection state of the checkbox.
- - -- cgit