From d8cd67062b8de6e8398dc6dfd00d201200c82414 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+ Constructor Determines if the text input is automatically focused. Makes the input element blur. Overrides FormControl.disabled Determines if the field is disabled. Getter Determines if the field is disabled.
+
+<init>
+
+AbstractText(label: String? = null, rich: Boolean = false)
+Parameters
+label
- label text bound to the input elementrich
- determines if label can contain HTML code
+
+
+autofocus
+
+var autofocus: Boolean?
+
+
+blur
+
+open fun blur(): Unit
+
+
+disabled
+
+open var disabled: Boolean
+
+
Setter
+
Determines if the field is disabled.
+ + + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html new file mode 100644 index 00000000..733fcfc8 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html @@ -0,0 +1,16 @@ + + + +val flabel: FieldLabel
+Overrides FormControl.flabel
+Form field label.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html new file mode 100644 index 00000000..8efcf47a --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html @@ -0,0 +1,15 @@ + + + +open fun focus(): Unit
+Makes the input element focused.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/get-sn-class.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/get-sn-class.html new file mode 100644 index 00000000..c08d18b0 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/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
abstract class AbstractText : SimplePanel, StringFormControl
+Base class for form field text components.
++ + | +
+AbstractText(label: String? = null, rich: Boolean = false) |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+abstract val input: AbstractTextInput
+The actual input component. + |
+
+ + | +
+var label: String?
+The label text bound to the text input element. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+var name: String?
+The name attribute of the generated HTML input element. + |
+
+ + | +
+var placeholder: String?
+The placeholder for the text input. + |
+
+ + | +
+var readonly: Boolean?
+Determines if the text input is read-only. + |
+
+ + | +
+var rich: Boolean
+Determines if label can contain HTML code. + |
+
+ + | +
+open var size: INPUTSIZE?
+Input control size. + |
+
+ + | +
+var startValue: String?
+The value attribute of the generated HTML input element. + |
+
+ + | +
+val validationInfo: HelpBlock
+Validation info component. + |
+
+ + | +
+open var value: String?
+Text input value. + |
+
+ + | +
+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 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(): 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. + |
+
+ + | +
+open class RichText : AbstractText
+Form field rich text component. + |
+
+ + | +
+open class Text : AbstractText
+Form field text component. + |
+
+ + | +
+open class TextArea : AbstractText
+Form field textarea component. + |
+
abstract val input: AbstractTextInput
+Overrides FormControl.input
+The actual input component.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/label.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/label.html new file mode 100644 index 00000000..a7694d44 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/label.html @@ -0,0 +1,15 @@ + + + +var label: String?
+The label text bound to the text input element.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html new file mode 100644 index 00000000..cee6a3cd --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html @@ -0,0 +1,15 @@ + + + +var maxlength: Int?
+Maximal length of the text input value.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/name.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/name.html new file mode 100644 index 00000000..18cef6cf --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/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.text/-abstract-text/placeholder.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/placeholder.html new file mode 100644 index 00000000..a77ec12b --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/placeholder.html @@ -0,0 +1,15 @@ + + + +var placeholder: String?
+The placeholder for the text input.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html new file mode 100644 index 00000000..4fb522c5 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html @@ -0,0 +1,15 @@ + + + +var readonly: Boolean?
+Determines if the text input is read-only.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/remove-event-listeners.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/remove-event-listeners.html new file mode 100644 index 00000000..bd341759 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/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.text/-abstract-text/set-event-listener.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/set-event-listener.html new file mode 100644 index 00000000..b7e101f5 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/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.text/-abstract-text/size.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/size.html
new file mode 100644
index 00000000..8221e61e
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/size.html
@@ -0,0 +1,22 @@
+
+
+
+open var size: INPUTSIZE?
+Overrides FormControl.size
+Input control size.
+Getter
+
Input control size.
+ +Setter
+
Input control size.
+ + + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html new file mode 100644 index 00000000..01635bc7 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html @@ -0,0 +1,17 @@ + + + +var startValue: String?
+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 text input value.
+ + diff --git a/docs/api/pl.treksoft.kvision.form.text/-abstract-text/validation-info.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/validation-info.html new file mode 100644 index 00000000..2b8e832f --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/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.text/-abstract-text/value.html b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/value.html new file mode 100644 index 00000000..44673562 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.form.text/-abstract-text/value.html @@ -0,0 +1,22 @@ + + + +open var value: String?
+Overrides StringFormControl.value
+Text input value.
+Getter
+
Text value.
+ +Setter
+
Text value.
+ + + -- cgit