From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+ Constructor Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Overrides Widget.afterPostpatch Method called after updating Snabbdom vnode. Determines if the text input is automatically focused. Getter Determines if the text input is automatically focused.
+
+<init>
+
+AbstractTextInput(value: String? = null, classes: Set<String> = setOf())
+Parameters
+
+classes
- a set of CSS class names
+
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+afterPostpatch
+
+protected open fun afterPostpatch(node: VNode): Unit
+
+
+autofocus
+
+var autofocus: Boolean?
+
+
Setter
+
Determines if the text input is automatically focused.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/blur.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/blur.html new file mode 100644 index 00000000..9eabcc25 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/blur.html @@ -0,0 +1,15 @@ + + + +open fun blur(): Unit
+Makes the input element blur.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/disabled.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/disabled.html new file mode 100644 index 00000000..4d0a8074 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-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.text/-abstract-text-input/focus.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/focus.html new file mode 100644 index 00000000..edd192bd --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/focus.html @@ -0,0 +1,15 @@ + + + +open fun focus(): Unit
+Makes the input element focused.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-attrs.html new file mode 100644 index 00000000..b66c84ee --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-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
abstract class AbstractTextInput : Widget, FormInput
+Base class for basic text components.
++ + | +
+AbstractTextInput(value: String? = null, 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 maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+open 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. + |
+
+ + | +
+open var size: InputSize?
+The size of the input. + |
+
+ + | +
+var startValue: String?
+The value attribute of the generated HTML input element. + |
+
+ + | +
+var value: String?
+Text input value. + |
+
+ + | +
+var draggable: Boolean?
+Determines if the current widget is draggable. + |
+
+ + | +
+var eventTarget: Widget? |
+
+ + | +
+var id: String?
+An ID attribute of generated HTML element. + |
+
+ + | +
+var lastLanguage: String? |
+
+ + | +
+open var parent: Container?
+Parent of the current component. + |
+
+ + | +
+var role: String?
+A role attribute of generated HTML element. + |
+
+ + | +
+var surroundingSpan: Boolean |
+
+ + | +
+var title: String?
+A title attribute of generated HTML element. + |
+
+ + | +
+open var visible: Boolean
+Visibility state of the current component. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun afterPostpatch(node: VNode): Unit
+Method called after updating Snabbdom vnode. + |
+
+ + | +
+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 addCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun addSurroundingCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun afterCreate(node: VNode): Unit
+Method called after creating Snabbdom vnode. + |
+
+ + | +
+open fun afterDestroy(): Unit
+Method called after destroying Snabbdom vnode. + |
+
+ + | +
+open fun clearDragDropData(): Unit
+Clears D&D data for the current widget. It also makes it not draggable. + |
+
+ + | +
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean? |
+
+ + | +
+open fun getElement(): Node?
+Returns DOM element bound to the current component. + |
+
+ + | +
+open fun getElementJQuery(): JQuery?
+Returns JQuery element bound to the current component. + |
+
+ + | +
+open fun getElementJQueryD(): dynamic
+Returns JQuery element bound to the current component as a dynamic type. + |
+
+ + | +
+open fun getSnHooks(): Hooks?
+Returns list of hooks in the form of a Snabbdom Hooks object. + |
+
+ + | +
+open fun getSnOn(): On?
+Returns list of event handlers in the form of a Snabbdom On object. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun removeCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun removeEventListeners(): Widget
+Removes all event listeners from current widget. + |
+
+ + | +
+open fun removeSurroundingCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun render(): VNode + open fun render(elementName: String): VNode + open fun render(elementName: String, children: Array<dynamic>): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun setContextMenu(contextMenu: ContextMenu): Widget
+Sets context menu for the current widget. + |
+
+ + | +
+open fun setDragDropData(format: String, data: String): Unit
+Sets D&D data for the current widget. It also makes it draggable. + |
+
+ + | +
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit + open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit
+Sets the current widget as a D&D drop target. + |
+
+ + | +
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit
+Sets the current widget as a D&D drop target with helper callback accepting String data. + |
+
+ + | +
+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 show(): Widget
+Makes current widget visible. + |
+
+ + | +
+open fun toggleVisible(): Widget
+Toggles visibility of current widget. + |
+
+ + | +
+fun translate(text: String?): String? |
+
+ + | +
+open class RichTextInput : AbstractTextInput
+Basic rich text component. + |
+
+ + | +
+open class TextAreaInput : AbstractTextInput
+Basic textarea component. + |
+
+ + | +
+open class TextInput : AbstractTextInput
+Basic text component. + |
+
var maxlength: Int?
+Maximal length of the text input value.
+Getter
+
Maximal length of the text input value.
+ +Setter
+
Maximal length of the text input value.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/name.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/name.html new file mode 100644 index 00000000..d740f0c6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/name.html @@ -0,0 +1,22 @@ + + + +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.text/-abstract-text-input/placeholder.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/placeholder.html new file mode 100644 index 00000000..4891bd0b --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/placeholder.html @@ -0,0 +1,21 @@ + + + +var placeholder: String?
+The placeholder for the text input.
+Getter
+
The placeholder for the text input.
+ +Setter
+
The placeholder for the text input.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/readonly.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/readonly.html new file mode 100644 index 00000000..cb2b662d --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/readonly.html @@ -0,0 +1,21 @@ + + + +var readonly: Boolean?
+Determines if the text input is read-only.
+Getter
+
Determines if the text input is read-only.
+ +Setter
+
Determines if the text input is read-only.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/size.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/size.html new file mode 100644 index 00000000..10f0d165 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-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.text/-abstract-text-input/start-value.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/start-value.html new file mode 100644 index 00000000..31d55e65 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/start-value.html @@ -0,0 +1,27 @@ + + + +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.
+Getter
+
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.
+ +Setter
+
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/api/pl.treksoft.kvision.form.text/-abstract-text-input/value.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/value.html new file mode 100644 index 00000000..6c31c567 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/value.html @@ -0,0 +1,21 @@ + + + +var value: String?
+Text input value.
+Getter
+
Text input value.
+ +Setter
+
Text input value.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html b/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html new file mode 100644 index 00000000..6c7212dc --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html @@ -0,0 +1,21 @@ + + + +AbstractText(label: String? = null, rich: Boolean = false)
+
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
var autofocus: Boolean?
+Determines if the text input is automatically focused.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/blur.html b/api/pl.treksoft.kvision.form.text/-abstract-text/blur.html new file mode 100644 index 00000000..fad0bf44 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/blur.html @@ -0,0 +1,16 @@ + + + +open fun blur(): Unit
+Overrides FormControl.blur
+Makes the input element blur.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html b/api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html new file mode 100644 index 00000000..733fcfc8 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html b/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html new file mode 100644 index 00000000..14a4fdd1 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/focus.html @@ -0,0 +1,16 @@ + + + +open fun focus(): Unit
+Overrides FormControl.focus
+Makes the input element focused.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/get-sn-class.html b/api/pl.treksoft.kvision.form.text/-abstract-text/get-sn-class.html new file mode 100644 index 00000000..c08d18b0 --- /dev/null +++ b/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. + |
+
+ + | +
+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 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. + |
+
+ + | +
+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/api/pl.treksoft.kvision.form.text/-abstract-text/label.html b/api/pl.treksoft.kvision.form.text/-abstract-text/label.html new file mode 100644 index 00000000..a7694d44 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html b/api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html new file mode 100644 index 00000000..cee6a3cd --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/placeholder.html b/api/pl.treksoft.kvision.form.text/-abstract-text/placeholder.html new file mode 100644 index 00000000..a77ec12b --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html b/api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html new file mode 100644 index 00000000..4fb522c5 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/remove-event-listeners.html b/api/pl.treksoft.kvision.form.text/-abstract-text/remove-event-listeners.html new file mode 100644 index 00000000..bd341759 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/set-event-listener.html b/api/pl.treksoft.kvision.form.text/-abstract-text/set-event-listener.html new file mode 100644 index 00000000..b7e101f5 --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html b/api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html
new file mode 100644
index 00000000..01635bc7
--- /dev/null
+++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/validation-info.html b/api/pl.treksoft.kvision.form.text/-abstract-text/validation-info.html new file mode 100644 index 00000000..2b8e832f --- /dev/null +++ b/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/api/pl.treksoft.kvision.form.text/-abstract-text/value.html b/api/pl.treksoft.kvision.form.text/-abstract-text/value.html new file mode 100644 index 00000000..207d6241 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/value.html @@ -0,0 +1,16 @@ + + + +open var value: String?
+Overrides StringFormControl.value
+Text input value.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-password/-init-.html b/api/pl.treksoft.kvision.form.text/-password/-init-.html new file mode 100644 index 00000000..1bc26295 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-password/-init-.html @@ -0,0 +1,25 @@ + + + +Password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+
+name
- the name attribute of the generated HTML input element
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
open class Password : Text
+Form field password component.
++ + | +
+Password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) |
+
+ + | +
+var autocomplete: Boolean?
+Determines if autocomplete is enabled for the input element. + |
+
+ + | +
+val input: TextInput
+The actual input component. + |
+
+ + | +
+var type: TextInputType
+Text input type. + |
+
+ + | +
+fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Password.() -> Unit = null): Password
+DSL builder extension function. + |
+
fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Password.() -> Unit = null): Password
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/-init-.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/-init-.html new file mode 100644 index 00000000..960d96db --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/-init-.html @@ -0,0 +1,21 @@ + + + +RichTextInput(value: String? = null, classes: Set<String> = setOf())
+
+classes
- a set of CSS class names
Constructor
+
protected open fun afterDestroy(): Unit
+Overrides Widget.afterDestroy
+Method called after destroying Snabbdom vnode.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/after-insert.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/after-insert.html new file mode 100644 index 00000000..9f9d720a --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/after-insert.html @@ -0,0 +1,16 @@ + + + +protected open fun afterInsert(node: VNode): Unit
+Overrides AbstractTextInput.afterInsert
+Method called after inserting Snabbdom vnode into the DOM.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/get-sn-attrs.html new file mode 100644 index 00000000..80e29d05 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnAttrs(): List<StringPair>
+Overrides AbstractTextInput.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
open class RichTextInput : AbstractTextInput
+Basic rich text component.
++ + | +
+RichTextInput(value: String? = null, 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 maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+open 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. + |
+
+ + | +
+open var size: InputSize?
+The size of the input. + |
+
+ + | +
+var startValue: String?
+The value attribute of the generated HTML input element. + |
+
+ + | +
+var value: String?
+Text input value. + |
+
+ + | +
+open fun afterDestroy(): Unit
+Method called after destroying Snabbdom vnode. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun afterPostpatch(node: VNode): Unit
+Method called after updating Snabbdom vnode. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: RichTextInput.() -> Unit = null): RichTextInput
+DSL builder extension function. + |
+
protected open fun render(): VNode
+Overrides Widget.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: RichTextInput.() -> Unit = null): RichTextInput
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html b/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html new file mode 100644 index 00000000..5727433a --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html @@ -0,0 +1,25 @@ + + + +RichText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+
+name
- the name attribute of the generated HTML input element
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
open class RichText : AbstractText
+Form field rich text component.
++ + | +
+RichText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) |
+
+ + | +
+val input: RichTextInput
+The actual input component. + |
+
+ + | +
+var inputHeight: CssSize?
+Rich input control height. + |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+var label: String?
+The label text bound to the text input element. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+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. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.richText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: RichText.() -> Unit = null): RichText
+DSL builder extension function. + |
+
var inputHeight: CssSize?
+Rich input control height.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/input.html b/api/pl.treksoft.kvision.form.text/-rich-text/input.html new file mode 100644 index 00000000..fdba0d9d --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text/input.html @@ -0,0 +1,16 @@ + + + +val input: RichTextInput
+Overrides AbstractText.input
+The actual input component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/rich-text.html b/api/pl.treksoft.kvision.form.text/-rich-text/rich-text.html new file mode 100644 index 00000000..2dd27587 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text/rich-text.html @@ -0,0 +1,16 @@ + + + +fun Container.richText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: RichText.() -> Unit = null): RichText
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/-init-.html b/api/pl.treksoft.kvision.form.text/-text-area-input/-init-.html new file mode 100644 index 00000000..b97eca51 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/-init-.html @@ -0,0 +1,25 @@ + + + +TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf())
+
+classes
- a set of CSS class names
Constructor
+
var cols: Int?
+Number of columns.
+Getter
+
Number of columns.
+ +Setter
+
Number of columns.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.text/-text-area-input/get-sn-attrs.html new file mode 100644 index 00000000..454e13de --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnAttrs(): List<StringPair>
+Overrides AbstractTextInput.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
open class TextAreaInput : AbstractTextInput
+Basic textarea component.
++ + | +
+TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf()) |
+
+ + | +
+var cols: Int?
+Number of columns. + |
+
+ + | +
+var rows: Int?
+Number of rows. + |
+
+ + | +
+var wrapHard: Boolean
+Determines if hard wrapping is enabled for the textarea element. + |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+open 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. + |
+
+ + | +
+open var size: InputSize?
+The size of the input. + |
+
+ + | +
+var startValue: String?
+The value attribute of the generated HTML input element. + |
+
+ + | +
+var value: String?
+Text input value. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun afterPostpatch(node: VNode): Unit
+Method called after updating Snabbdom vnode. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: TextAreaInput.() -> Unit = null): TextAreaInput
+DSL builder extension function. + |
+
protected open fun render(): VNode
+Overrides Widget.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
var rows: Int?
+Number of rows.
+Getter
+
Number of rows.
+ +Setter
+
Number of rows.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/text-area-input.html b/api/pl.treksoft.kvision.form.text/-text-area-input/text-area-input.html new file mode 100644 index 00000000..c3a2a003 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/text-area-input.html @@ -0,0 +1,16 @@ + + + +fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: TextAreaInput.() -> Unit = null): TextAreaInput
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/wrap-hard.html b/api/pl.treksoft.kvision.form.text/-text-area-input/wrap-hard.html new file mode 100644 index 00000000..782b9997 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/wrap-hard.html @@ -0,0 +1,21 @@ + + + +var wrapHard: Boolean
+Determines if hard wrapping is enabled for the textarea element.
+Getter
+
Determines if hard wrapping is enabled for the textarea element.
+ +Setter
+
Determines if hard wrapping is enabled for the textarea element.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/-init-.html b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html new file mode 100644 index 00000000..7878587a --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html @@ -0,0 +1,29 @@ + + + +TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+
+name
- the name attribute of the generated HTML input element
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
var cols: Int?
+Number of columns.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/index.html b/api/pl.treksoft.kvision.form.text/-text-area/index.html new file mode 100644 index 00000000..be73c823 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/index.html @@ -0,0 +1,228 @@ + + + +open class TextArea : AbstractText
+Form field textarea component.
++ + | +
+TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) |
+
+ + | +
+var cols: Int?
+Number of columns. + |
+
+ + | +
+val input: TextAreaInput
+The actual input component. + |
+
+ + | +
+var rows: Int?
+Number of rows. + |
+
+ + | +
+var wrapHard: Boolean
+Determines if hard wrapping is enabled for the textarea element. + |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+var label: String?
+The label text bound to the text input element. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+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. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): TextArea
+DSL builder extension function. + |
+
val input: TextAreaInput
+Overrides AbstractText.input
+The actual input component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/rows.html b/api/pl.treksoft.kvision.form.text/-text-area/rows.html new file mode 100644 index 00000000..a1c00d2d --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/rows.html @@ -0,0 +1,15 @@ + + + +var rows: Int?
+Number of rows.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/text-area.html b/api/pl.treksoft.kvision.form.text/-text-area/text-area.html new file mode 100644 index 00000000..0aa43c36 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/text-area.html @@ -0,0 +1,16 @@ + + + +fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TextArea.() -> Unit = null): TextArea
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/wrap-hard.html b/api/pl.treksoft.kvision.form.text/-text-area/wrap-hard.html new file mode 100644 index 00000000..2bbec808 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/wrap-hard.html @@ -0,0 +1,15 @@ + + + +var wrapHard: Boolean
+Determines if hard wrapping is enabled for the textarea element.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-c-o-l-o-r.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-c-o-l-o-r.html new file mode 100644 index 00000000..3dfcc960 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-c-o-l-o-r.html @@ -0,0 +1,14 @@ + + + +COLOR
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-e-m-a-i-l.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-e-m-a-i-l.html
new file mode 100644
index 00000000..8d60aee6
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-e-m-a-i-l.html
@@ -0,0 +1,14 @@
+
+
+
+EMAIL
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-p-a-s-s-w-o-r-d.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-p-a-s-s-w-o-r-d.html
new file mode 100644
index 00000000..228db9d4
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-p-a-s-s-w-o-r-d.html
@@ -0,0 +1,14 @@
+
+
+
+PASSWORD
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-s-e-a-r-c-h.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-s-e-a-r-c-h.html
new file mode 100644
index 00000000..4335f497
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-s-e-a-r-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+SEARCH
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-l.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-l.html
new file mode 100644
index 00000000..91303db0
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-l.html
@@ -0,0 +1,14 @@
+
+
+
+TEL
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-x-t.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-x-t.html
new file mode 100644
index 00000000..11dd285e
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-x-t.html
@@ -0,0 +1,14 @@
+
+
+
+TEXT
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/-u-r-l.html b/api/pl.treksoft.kvision.form.text/-text-input-type/-u-r-l.html
new file mode 100644
index 00000000..7d347fb8
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/-u-r-l.html
@@ -0,0 +1,14 @@
+
+
+
+URL
+
+
diff --git a/api/pl.treksoft.kvision.form.text/-text-input-type/index.html b/api/pl.treksoft.kvision.form.text/-text-input-type/index.html
new file mode 100644
index 00000000..86f035fc
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.text/-text-input-type/index.html
@@ -0,0 +1,68 @@
+
+
+
+enum class TextInputType
+Text input types.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
TextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf())
+
+type
- text input type (default "text")
+classes
- a set of CSS class names
Constructor
+
var autocomplete: Boolean?
+Determines if autocomplete is enabled for the input element.
+Getter
+
Determines if autocomplete is enabled for the input element.
+ +Setter
+
Determines if autocomplete is enabled for the input element.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.text/-text-input/get-sn-attrs.html new file mode 100644 index 00000000..02865712 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnAttrs(): List<StringPair>
+Overrides AbstractTextInput.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
open class TextInput : AbstractTextInput
+Basic text component.
++ + | +
+TextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf()) |
+
+ + | +
+var autocomplete: Boolean?
+Determines if autocomplete is enabled for the input element. + |
+
+ + | +
+var type: TextInputType
+Text input type. + |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+open 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. + |
+
+ + | +
+open var size: InputSize?
+The size of the input. + |
+
+ + | +
+var startValue: String?
+The value attribute of the generated HTML input element. + |
+
+ + | +
+var value: String?
+Text input value. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun afterPostpatch(node: VNode): Unit
+Method called after updating Snabbdom vnode. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.textInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: TextInput.() -> Unit = null): TextInput
+DSL builder extension function. + |
+
protected open fun render(): VNode
+Overrides Widget.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
fun Container.textInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: TextInput.() -> Unit = null): TextInput
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/type.html b/api/pl.treksoft.kvision.form.text/-text-input/type.html new file mode 100644 index 00000000..51ef2a9f --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/type.html @@ -0,0 +1,21 @@ + + + +var type: TextInputType
+Text input type.
+Getter
+
Text input type.
+ +Setter
+
Text input type.
+ + + diff --git a/api/pl.treksoft.kvision.form.text/-text/-init-.html b/api/pl.treksoft.kvision.form.text/-text/-init-.html new file mode 100644 index 00000000..530d8779 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/-init-.html @@ -0,0 +1,27 @@ + + + +Text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+
+type
- text input type (default "text")
+name
- the name attribute of the generated HTML input element
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
var autocomplete: Boolean?
+Determines if autocomplete is enabled for the input element.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text/index.html b/api/pl.treksoft.kvision.form.text/-text/index.html new file mode 100644 index 00000000..e78ccda6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/index.html @@ -0,0 +1,233 @@ + + + +open class Text : AbstractText
+Form field text component.
++ + | +
+Text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) |
+
+ + | +
+var autocomplete: Boolean?
+Determines if autocomplete is enabled for the input element. + |
+
+ + | +
+val input: TextInput
+The actual input component. + |
+
+ + | +
+var type: TextInputType
+Text input type. + |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+var label: String?
+The label text bound to the text input element. + |
+
+ + | +
+var maxlength: Int?
+Maximal length of the text input value. + |
+
+ + | +
+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. + |
+
+ + | +
+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. + |
+
+ + | +
+fun Container.text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Text.() -> Unit = null): Text
+DSL builder extension function. + |
+
+ + | +
+open class Password : Text
+Form field password component. + |
+
val input: TextInput
+Overrides AbstractText.input
+The actual input component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text/text.html b/api/pl.treksoft.kvision.form.text/-text/text.html new file mode 100644 index 00000000..3c06ae61 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/text.html @@ -0,0 +1,16 @@ + + + +fun Container.text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Text.() -> Unit = null): Text
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text/type.html b/api/pl.treksoft.kvision.form.text/-text/type.html new file mode 100644 index 00000000..1858490c --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/type.html @@ -0,0 +1,15 @@ + + + +var type: TextInputType
+Text input type.
+ + diff --git a/api/pl.treksoft.kvision.form.text/index.html b/api/pl.treksoft.kvision.form.text/index.html new file mode 100644 index 00000000..8758e734 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/index.html @@ -0,0 +1,108 @@ + + + +Text input components, with password, text area and rich text area support.
++ + | +
+abstract class AbstractText : SimplePanel, StringFormControl
+Base class for form field text components. + |
+
+ + | +
+abstract class AbstractTextInput : Widget, FormInput
+Base class for basic text components. + |
+
+ + | +
+open class Password : Text
+Form field password component. + |
+
+ + | +
+open class RichText : AbstractText
+Form field rich text component. + |
+
+ + | +
+open class RichTextInput : AbstractTextInput
+Basic rich text component. + |
+
+ + | +
+open class Text : AbstractText
+Form field text component. + |
+
+ + | +
+open class TextArea : AbstractText
+Form field textarea component. + |
+
+ + | +
+open class TextAreaInput : AbstractTextInput
+Basic textarea component. + |
+
+ + | +
+open class TextInput : AbstractTextInput
+Basic text component. + |
+
+ + | +
+enum class TextInputType
+Text input types. + |
+