From a8ff23c5e58394c21e2e7c2a4880302b43b60dfd Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+ Constructor Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Determines if the text input is automatically focused. Getter Determines if the text input is automatically focused.
+
+<init>
+
+SimpleSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, classes: Set<String> = setOf())
+Parameters
+options - an optional list of options (value to label pairs) for the select controlemptyOption - determines if an empty option is automatically generatedclasses - a set of CSS class names
+
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+autofocus
+
+var autofocus: Boolean?
+
+
Setter
+
Determines if the text input is automatically focused.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/blur.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/blur.html new file mode 100644 index 00000000..a9503eb7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/blur.html @@ -0,0 +1,16 @@ + + + +open fun blur(): Unit
+Overrides FormInput.blur
+Makes the input element blur.
+ + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/disabled.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/disabled.html new file mode 100644 index 00000000..cd60e220 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/disabled.html @@ -0,0 +1,22 @@ + + + +open var disabled: Boolean
+Overrides FormInput.disabled
+Determines if the field is disabled.
+Getter
+
Determines if the field is disabled.
+ +Setter
+
Determines if the field is disabled.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/empty-option.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/empty-option.html new file mode 100644 index 00000000..e2f45748 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/empty-option.html @@ -0,0 +1,21 @@ + + + +var emptyOption: Boolean
+Determines if an empty option is automatically generated.
+Getter
+
Determines if an empty option is automatically generated.
+ +Setter
+
Determines if an empty option is automatically generated.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/focus.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/focus.html new file mode 100644 index 00000000..47988abf --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/focus.html @@ -0,0 +1,16 @@ + + + +open fun focus(): Unit
+Overrides FormInput.focus
+Makes the input element focused.
+ + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/get-sn-attrs.html new file mode 100644 index 00000000..724f20d7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnAttrs(): List<StringPair>
+Overrides Widget.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
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 SimpleSelectInput : SimplePanel, FormInput
+Simple select component.
+| + + | +
+SimpleSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, classes: Set<String> = setOf()) |
+
| + + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
| + + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
| + + | +
+var emptyOption: Boolean
+Determines if an empty option is automatically generated. + |
+
| + + | +
+open var name: String?
+The name attribute of the generated HTML input element. + |
+
| + + | +
+var options: List<StringPair>?
+A list of options (value to label pairs) for the select control. + |
+
| + + | +
+open var size: InputSize?
+The size of the input. + |
+
| + + | +
+var startValue: String?
+The value of the selected child option. + |
+
| + + | +
+var value: String?
+Text input value. + |
+
| + + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
| + + | +
+open fun blur(): Unit
+Makes the input element blur. + |
+
| + + | +
+open fun focus(): Unit
+Makes the input element focused. + |
+
| + + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
| + + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
| + + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
| + + | +
+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 remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
| + + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
| + + | +
+fun Container.simpleSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, classes: Set<String> = setOf(), init: (SimpleSelectInput.() -> Unit)? = null): SimpleSelectInput
+DSL builder extension function. + |
+
| + + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
open var name: String?
+Overrides FormInput.name
+The name attribute of the generated HTML input element.
+Getter
+
The name attribute of the generated HTML input element.
+ +Setter
+
The name attribute of the generated HTML input element.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/options.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/options.html new file mode 100644 index 00000000..b9d041c5 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/options.html @@ -0,0 +1,21 @@ + + + +var options: List<StringPair>?
+A list of options (value to label pairs) for the select control.
+Getter
+
A list of options (value to label pairs) for the select control.
+ +Setter
+
A list of options (value to label pairs) for the select control.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/render.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/render.html new file mode 100644 index 00000000..53648da0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/render.html @@ -0,0 +1,18 @@ + + + +protected open fun render(): VNode
+Overrides SimplePanel.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
fun Container.simpleSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, classes: Set<String> = setOf(), init: (SimpleSelectInput.() -> Unit)? = null): SimpleSelectInput
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/size.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/size.html new file mode 100644 index 00000000..269cda90 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/size.html @@ -0,0 +1,22 @@ + + + +open var size: InputSize?
+Overrides FormInput.size
+The size of the input.
+Getter
+
The size of the input.
+ +Setter
+
The size of the input.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/start-value.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/start-value.html new file mode 100644 index 00000000..e7956d7e --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/start-value.html @@ -0,0 +1,27 @@ + + + +var startValue: String?
+The value of the selected child option.
+This value is placed directly in the generated HTML code, while the value property is dynamically +bound to the select component.
+Getter
+
The value of the selected child option.
+This value is placed directly in the generated HTML code, while the value property is dynamically +bound to the select component.
+ +Setter
+
The value of the selected child option.
+This value is placed directly in the generated HTML code, while the value property is dynamically +bound to the select component.
+ + + diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/value.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/value.html new file mode 100644 index 00000000..b44c6a1c --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/value.html @@ -0,0 +1,21 @@ + + + +var value: String?
+Text input value.
+Getter
+
Text input value.
+ +Setter
+
Text input value.
+ + + -- cgit