From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 22 Oct 2018 00:01:39 +0200 Subject: API documentation for KVision 0.0.19 --- .../-abstract-text-input/-init-.html | 21 + .../-abstract-text-input/after-insert.html | 16 + .../-abstract-text-input/after-postpatch.html | 16 + .../-abstract-text-input/autofocus.html | 21 + .../-abstract-text-input/blur.html | 15 + .../-abstract-text-input/disabled.html | 22 + .../-abstract-text-input/focus.html | 15 + .../-abstract-text-input/get-sn-attrs.html | 18 + .../-abstract-text-input/get-sn-class.html | 18 + .../-abstract-text-input/index.html | 505 +++++++++++++++++++++ .../-abstract-text-input/maxlength.html | 21 + .../-abstract-text-input/name.html | 22 + .../-abstract-text-input/placeholder.html | 21 + .../-abstract-text-input/readonly.html | 21 + .../-abstract-text-input/size.html | 22 + .../-abstract-text-input/start-value.html | 27 ++ .../-abstract-text-input/value.html | 21 + .../-abstract-text/-init-.html | 21 + .../-abstract-text/autofocus.html | 15 + .../-abstract-text/blur.html | 16 + .../-abstract-text/flabel.html | 16 + .../-abstract-text/focus.html | 16 + .../-abstract-text/get-sn-class.html | 18 + .../-abstract-text/index.html | 318 +++++++++++++ .../-abstract-text/input.html | 16 + .../-abstract-text/label.html | 15 + .../-abstract-text/maxlength.html | 15 + .../-abstract-text/placeholder.html | 15 + .../-abstract-text/readonly.html | 15 + .../-abstract-text/remove-event-listeners.html | 18 + .../-abstract-text/rich.html | 15 + .../-abstract-text/set-event-listener.html | 54 +++ .../-abstract-text/start-value.html | 17 + .../-abstract-text/validation-info.html | 16 + .../-abstract-text/value.html | 16 + .../-password/-init-.html | 25 + .../-password/index.html | 72 +++ .../-password/password.html | 16 + .../-rich-text-input/-init-.html | 21 + .../-rich-text-input/after-destroy.html | 16 + .../-rich-text-input/after-insert.html | 16 + .../-rich-text-input/get-sn-attrs.html | 18 + .../-rich-text-input/index.html | 208 +++++++++ .../-rich-text-input/render.html | 18 + .../-rich-text-input/rich-text-input.html | 16 + .../-rich-text/-init-.html | 25 + .../-rich-text/index.html | 210 +++++++++ .../-rich-text/input-height.html | 15 + .../-rich-text/input.html | 16 + .../-rich-text/rich-text.html | 16 + .../-text-area-input/-init-.html | 25 + .../-text-area-input/cols.html | 21 + .../-text-area-input/get-sn-attrs.html | 18 + .../-text-area-input/index.html | 231 ++++++++++ .../-text-area-input/render.html | 18 + .../-text-area-input/rows.html | 21 + .../-text-area-input/text-area-input.html | 16 + .../-text-area-input/wrap-hard.html | 21 + .../-text-area/-init-.html | 29 ++ .../-text-area/cols.html | 15 + .../-text-area/index.html | 228 ++++++++++ .../-text-area/input.html | 16 + .../-text-area/rows.html | 15 + .../-text-area/text-area.html | 16 + .../-text-area/wrap-hard.html | 15 + .../-text-input-type/-c-o-l-o-r.html | 14 + .../-text-input-type/-e-m-a-i-l.html | 14 + .../-text-input-type/-p-a-s-s-w-o-r-d.html | 14 + .../-text-input-type/-s-e-a-r-c-h.html | 14 + .../-text-input-type/-t-e-l.html | 14 + .../-text-input-type/-t-e-x-t.html | 14 + .../-text-input-type/-u-r-l.html | 14 + .../-text-input-type/index.html | 68 +++ .../-text-input/-init-.html | 23 + .../-text-input/autocomplete.html | 21 + .../-text-input/get-sn-attrs.html | 18 + .../-text-input/index.html | 222 +++++++++ .../-text-input/render.html | 18 + .../-text-input/text-input.html | 16 + .../-text-input/type.html | 21 + .../-text/-init-.html | 27 ++ .../-text/autocomplete.html | 15 + api/pl.treksoft.kvision.form.text/-text/index.html | 233 ++++++++++ api/pl.treksoft.kvision.form.text/-text/input.html | 16 + api/pl.treksoft.kvision.form.text/-text/text.html | 16 + api/pl.treksoft.kvision.form.text/-text/type.html | 15 + api/pl.treksoft.kvision.form.text/index.html | 108 +++++ 87 files changed, 3802 insertions(+) create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/after-insert.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/after-postpatch.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/autofocus.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/blur.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/disabled.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/focus.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/maxlength.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/name.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/placeholder.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/readonly.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/size.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/start-value.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text-input/value.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/autofocus.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/blur.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/flabel.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/focus.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/input.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/label.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/maxlength.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/placeholder.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/readonly.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/remove-event-listeners.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/rich.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/set-event-listener.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/start-value.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/validation-info.html create mode 100644 api/pl.treksoft.kvision.form.text/-abstract-text/value.html create mode 100644 api/pl.treksoft.kvision.form.text/-password/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-password/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-password/password.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/after-destroy.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/after-insert.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/render.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text-input/rich-text-input.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text/input-height.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text/input.html create mode 100644 api/pl.treksoft.kvision.form.text/-rich-text/rich-text.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/cols.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/render.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/rows.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/text-area-input.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area-input/wrap-hard.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/cols.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/input.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/rows.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/text-area.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-area/wrap-hard.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-c-o-l-o-r.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-e-m-a-i-l.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-p-a-s-s-w-o-r-d.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-s-e-a-r-c-h.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-l.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-t-e-x-t.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/-u-r-l.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input-type/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/autocomplete.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/render.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/text-input.html create mode 100644 api/pl.treksoft.kvision.form.text/-text-input/type.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/-init-.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/autocomplete.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/index.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/input.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/text.html create mode 100644 api/pl.treksoft.kvision.form.text/-text/type.html create mode 100644 api/pl.treksoft.kvision.form.text/index.html (limited to 'api/pl.treksoft.kvision.form.text') diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/-init-.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/-init-.html new file mode 100644 index 00000000..4bd1fbfc --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/-init-.html @@ -0,0 +1,21 @@ + + + +AbstractTextInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / <init>
+
+

<init>

+ +AbstractTextInput(value: String? = null, classes: Set<String> = setOf()) +

Parameters

+

+value - text input value

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-insert.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-insert.html new file mode 100644 index 00000000..2774cb23 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-insert.html @@ -0,0 +1,16 @@ + + + +AbstractTextInput.afterInsert - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / afterInsert
+
+

afterInsert

+ +protected open fun afterInsert(node: VNode): Unit +

Overrides Widget.afterInsert

+

Method called after inserting Snabbdom vnode into the DOM.

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-postpatch.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-postpatch.html new file mode 100644 index 00000000..eb1f1c60 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/after-postpatch.html @@ -0,0 +1,16 @@ + + + +AbstractTextInput.afterPostpatch - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / afterPostpatch
+
+

afterPostpatch

+ +protected open fun afterPostpatch(node: VNode): Unit +

Overrides Widget.afterPostpatch

+

Method called after updating Snabbdom vnode.

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/autofocus.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/autofocus.html new file mode 100644 index 00000000..e8409282 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/autofocus.html @@ -0,0 +1,21 @@ + + + +AbstractTextInput.autofocus - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / autofocus
+
+

autofocus

+ +var autofocus: Boolean? +

Determines if the text input is automatically focused.

+

Getter
+

Determines if the text input is automatically focused.

+

+

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 @@ + + + +AbstractTextInput.blur - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / blur
+
+

blur

+ +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 @@ + + + +AbstractTextInput.disabled - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / disabled
+
+

disabled

+ +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 @@ + + + +AbstractTextInput.focus - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / focus
+
+

focus

+ +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 @@ + + + +AbstractTextInput.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / getSnAttrs
+
+

getSnAttrs

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-class.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-class.html new file mode 100644 index 00000000..9411ae2f --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/get-sn-class.html @@ -0,0 +1,18 @@ + + + +AbstractTextInput.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / getSnClass
+
+

getSnClass

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html new file mode 100644 index 00000000..c68d6469 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html @@ -0,0 +1,505 @@ + + + +AbstractTextInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput
+
+

AbstractTextInput

+abstract class AbstractTextInput : Widget, FormInput +

Base class for basic text components.

+

Constructors

+ + + + + + + +
+

<init>

+
+AbstractTextInput(value: String? = null, classes: Set<String> = setOf())
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

value

+
+var value: String? +

Text input value.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

draggable

+
+var draggable: Boolean? +

Determines if the current widget is draggable.

+
+

eventTarget

+
+var eventTarget: Widget?
+

id

+
+var id: String? +

An ID attribute of generated HTML element.

+
+

lastLanguage

+
+var lastLanguage: String?
+

parent

+
+open var parent: Container? +

Parent of the current component.

+
+

role

+
+var role: String? +

A role attribute of generated HTML element.

+
+

surroundingSpan

+
+var surroundingSpan: Boolean
+

title

+
+var title: String? +

A title attribute of generated HTML element.

+
+

visible

+
+open var visible: Boolean +

Visibility state of the current component.

+
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addCssClass

+
+open fun addCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of current component.

+
+

addSurroundingCssClass

+
+open fun addSurroundingCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of parent component.

+
+

afterCreate

+
+open fun afterCreate(node: VNode): Unit +

Method called after creating Snabbdom vnode.

+
+

afterDestroy

+
+open fun afterDestroy(): Unit +

Method called after destroying Snabbdom vnode.

+
+

clearDragDropData

+
+open fun clearDragDropData(): Unit +

Clears D&D data for the current widget. It also makes it not draggable.

+
+

dispatchEvent

+
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
+

getElement

+
+open fun getElement(): Node? +

Returns DOM element bound to the current component.

+
+

getElementJQuery

+
+open fun getElementJQuery(): JQuery? +

Returns JQuery element bound to the current component.

+
+

getElementJQueryD

+
+open fun getElementJQueryD(): dynamic +

Returns JQuery element bound to the current component as a dynamic type.

+
+

getSnHooks

+
+open fun getSnHooks(): Hooks? +

Returns list of hooks in the form of a Snabbdom Hooks object.

+
+

getSnOn

+
+open fun getSnOn(): On? +

Returns list of event handlers in the form of a Snabbdom On object.

+
+

hide

+
+open fun hide(): Widget +

Makes current widget invisible.

+
+

removeCssClass

+
+open fun removeCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of current component.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

removeSurroundingCssClass

+
+open fun removeSurroundingCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of parent component.

+
+

render

+
+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.

+
+

setContextMenu

+
+open fun setContextMenu(contextMenu: ContextMenu): Widget +

Sets context menu for the current widget.

+
+

setDragDropData

+
+open fun setDragDropData(format: String, data: String): Unit +

Sets D&D data for the current widget. It also makes it draggable.

+
+

setDropTarget

+
+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.

+
+

setDropTargetData

+
+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.

+
+

setEventListener

+
+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.

+
+

show

+
+open fun show(): Widget +

Makes current widget visible.

+
+

toggleVisible

+
+open fun toggleVisible(): Widget +

Toggles visibility of current widget.

+
+

translate

+
+fun translate(text: String?): String?
+

Inheritors

+ + + + + + + + + + + + + + + +
+

RichTextInput

+
+open class RichTextInput : AbstractTextInput +

Basic rich text component.

+
+

TextAreaInput

+
+open class TextAreaInput : AbstractTextInput +

Basic textarea component.

+
+

TextInput

+
+open class TextInput : AbstractTextInput +

Basic text component.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/maxlength.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/maxlength.html new file mode 100644 index 00000000..caef8db7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/maxlength.html @@ -0,0 +1,21 @@ + + + +AbstractTextInput.maxlength - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / maxlength
+
+

maxlength

+ +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 @@ + + + +AbstractTextInput.name - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / name
+
+

name

+ +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 @@ + + + +AbstractTextInput.placeholder - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / placeholder
+
+

placeholder

+ +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 @@ + + + +AbstractTextInput.readonly - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / readonly
+
+

readonly

+ +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 @@ + + + +AbstractTextInput.size - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / size
+
+

size

+ +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 @@ + + + +AbstractTextInput.startValue - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / startValue
+
+

startValue

+ +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 @@ + + + +AbstractTextInput.value - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractTextInput / value
+
+

value

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / <init>
+
+

<init>

+ +AbstractText(label: String? = null, rich: Boolean = false) +

Parameters

+

+label - label text bound to the input element

+

+rich - determines if label can contain HTML code

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/autofocus.html b/api/pl.treksoft.kvision.form.text/-abstract-text/autofocus.html new file mode 100644 index 00000000..15351f6f --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/autofocus.html @@ -0,0 +1,15 @@ + + + +AbstractText.autofocus - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / autofocus
+
+

autofocus

+ +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 @@ + + + +AbstractText.blur - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / blur
+
+

blur

+ +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 @@ + + + +AbstractText.flabel - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / flabel
+
+

flabel

+ +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 @@ + + + +AbstractText.focus - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / focus
+
+

focus

+ +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 @@ + + + +AbstractText.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / getSnClass
+
+

getSnClass

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/index.html b/api/pl.treksoft.kvision.form.text/-abstract-text/index.html new file mode 100644 index 00000000..820ab7fd --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/index.html @@ -0,0 +1,318 @@ + + + +AbstractText - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText
+
+

AbstractText

+abstract class AbstractText : SimplePanel, StringFormControl +

Base class for form field text components.

+

Constructors

+ + + + + + + +
+

<init>

+
+AbstractText(label: String? = null, rich: Boolean = false)
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

input

+
+abstract val input: AbstractTextInput +

The actual input component.

+
+

label

+
+var label: String? +

The label text bound to the text input element.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

validationInfo

+
+val validationInfo: HelpBlock +

Validation info component.

+
+

value

+
+open var value: String? +

Text input value.

+
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

setEventListener

+
+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.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

add

+
+open fun add(child: Component): SimplePanel +

Adds given component to the current container.

+
+

addAll

+
+open fun addAll(children: List<Component>): SimplePanel +

Adds a list of components to the current container.

+
+

addInternal

+
+fun addInternal(child: Component): SimplePanel +

Protected and final method to add given component to the current container.

+
+

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

getChildren

+
+open fun getChildren(): List<Component> +

Returns a list of children of the current container.

+
+

getValue

+
+open fun getValue(): String? +

Returns the value of the control.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

remove

+
+open fun remove(child: Component): SimplePanel +

Removes given component from the current container.

+
+

removeAll

+
+open fun removeAll(): SimplePanel +

Removes all children from the current container.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

setValue

+
+open fun setValue(v: Any?): Unit +

Sets the value of the control.

+
+

Inheritors

+ + + + + + + + + + + + + + + +
+

RichText

+
+open class RichText : AbstractText +

Form field rich text component.

+
+

Text

+
+open class Text : AbstractText +

Form field text component.

+
+

TextArea

+
+open class TextArea : AbstractText +

Form field textarea component.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/input.html b/api/pl.treksoft.kvision.form.text/-abstract-text/input.html new file mode 100644 index 00000000..164fba23 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/input.html @@ -0,0 +1,16 @@ + + + +AbstractText.input - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / input
+
+

input

+ +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 @@ + + + +AbstractText.label - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / label
+
+

label

+ +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 @@ + + + +AbstractText.maxlength - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / maxlength
+
+

maxlength

+ +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 @@ + + + +AbstractText.placeholder - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / placeholder
+
+

placeholder

+ +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 @@ + + + +AbstractText.readonly - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / readonly
+
+

readonly

+ +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 @@ + + + +AbstractText.removeEventListeners - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / removeEventListeners
+
+

removeEventListeners

+ +open fun removeEventListeners(): Widget +

Overrides Widget.removeEventListeners

+

Removes all event listeners from current widget.

+

Return
+current widget

+ + diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/rich.html b/api/pl.treksoft.kvision.form.text/-abstract-text/rich.html new file mode 100644 index 00000000..91dbcb4a --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/rich.html @@ -0,0 +1,15 @@ + + + +AbstractText.rich - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / rich
+
+

rich

+ +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 @@ + + + +AbstractText.setEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / setEventListener
+
+

setEventListener

+ +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.

+

Parameters

+

+T - widget type

+

+block - event handler

+

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.

+

Parameters

+

+block - event handler

+

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 @@ + + + +AbstractText.startValue - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / startValue
+
+

startValue

+ +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 @@ + + + +AbstractText.validationInfo - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / validationInfo
+
+

validationInfo

+ +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 @@ + + + +AbstractText.value - kvision + + + +kvision / pl.treksoft.kvision.form.text / AbstractText / value
+
+

value

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / Password / <init>
+
+

<init>

+ +Password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) +

Parameters

+

+value - text input value

+

+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
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-password/index.html b/api/pl.treksoft.kvision.form.text/-password/index.html new file mode 100644 index 00000000..a6d9b6e0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-password/index.html @@ -0,0 +1,72 @@ + + + +Password - kvision + + + +kvision / pl.treksoft.kvision.form.text / Password
+
+

Password

+open class Password : Text +

Form field password component.

+

Constructors

+ + + + + + + +
+

<init>

+
+Password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+

Inherited Properties

+ + + + + + + + + + + + + + + +
+

autocomplete

+
+var autocomplete: Boolean? +

Determines if autocomplete is enabled for the input element.

+
+

input

+
+val input: TextInput +

The actual input component.

+
+

type

+
+var type: TextInputType +

Text input type.

+
+

Companion Object Functions

+ + + + + + + +
+

password

+
+fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Password.() -> Unit = null): Password +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-password/password.html b/api/pl.treksoft.kvision.form.text/-password/password.html new file mode 100644 index 00000000..7a94a0b2 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-password/password.html @@ -0,0 +1,16 @@ + + + +Password.password - kvision + + + +kvision / pl.treksoft.kvision.form.text / Password / password
+
+

password

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / <init>
+
+

<init>

+ +RichTextInput(value: String? = null, classes: Set<String> = setOf()) +

Parameters

+

+value - text input value

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/after-destroy.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/after-destroy.html new file mode 100644 index 00000000..ba64d80f --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/after-destroy.html @@ -0,0 +1,16 @@ + + + +RichTextInput.afterDestroy - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / afterDestroy
+
+

afterDestroy

+ +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 @@ + + + +RichTextInput.afterInsert - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / afterInsert
+
+

afterInsert

+ +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 @@ + + + +RichTextInput.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / getSnAttrs
+
+

getSnAttrs

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/index.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/index.html new file mode 100644 index 00000000..c3850463 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/index.html @@ -0,0 +1,208 @@ + + + +RichTextInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput
+
+

RichTextInput

+open class RichTextInput : AbstractTextInput +

Basic rich text component.

+

Constructors

+ + + + + + + +
+

<init>

+
+RichTextInput(value: String? = null, classes: Set<String> = setOf())
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

value

+
+var value: String? +

Text input value.

+
+

Functions

+ + + + + + + + + + + + + + + + + + + +
+

afterDestroy

+
+open fun afterDestroy(): Unit +

Method called after destroying Snabbdom vnode.

+
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + +
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

Companion Object Functions

+ + + + + + + +
+

richTextInput

+
+fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: RichTextInput.() -> Unit = null): RichTextInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/render.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/render.html new file mode 100644 index 00000000..ad34258c --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/render.html @@ -0,0 +1,18 @@ + + + +RichTextInput.render - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / render
+
+

render

+ +protected open fun render(): VNode +

Overrides Widget.render

+

Renders current component as a Snabbdom vnode.

+

Return
+Snabbdom vnode

+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text-input/rich-text-input.html b/api/pl.treksoft.kvision.form.text/-rich-text-input/rich-text-input.html new file mode 100644 index 00000000..3720d993 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text-input/rich-text-input.html @@ -0,0 +1,16 @@ + + + +RichTextInput.richTextInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichTextInput / richTextInput
+
+

richTextInput

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichText / <init>
+
+

<init>

+ +RichText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) +

Parameters

+

+value - text input value

+

+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
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/index.html b/api/pl.treksoft.kvision.form.text/-rich-text/index.html new file mode 100644 index 00000000..71ee0dc8 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text/index.html @@ -0,0 +1,210 @@ + + + +RichText - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichText
+
+

RichText

+open class RichText : AbstractText +

Form field rich text component.

+

Constructors

+ + + + + + + +
+

<init>

+
+RichText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+

Properties

+ + + + + + + + + + + +
+

input

+
+val input: RichTextInput +

The actual input component.

+
+

inputHeight

+
+var inputHeight: CssSize? +

Rich input control height.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

label

+
+var label: String? +

The label text bound to the text input element.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

validationInfo

+
+val validationInfo: HelpBlock +

Validation info component.

+
+

value

+
+open var value: String? +

Text input value.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

setEventListener

+
+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.

+
+

Companion Object Functions

+ + + + + + + +
+

richText

+
+fun Container.richText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: RichText.() -> Unit = null): RichText +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/input-height.html b/api/pl.treksoft.kvision.form.text/-rich-text/input-height.html new file mode 100644 index 00000000..13c8d8dd --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-rich-text/input-height.html @@ -0,0 +1,15 @@ + + + +RichText.inputHeight - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichText / inputHeight
+
+

inputHeight

+ +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 @@ + + + +RichText.input - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichText / input
+
+

input

+ +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 @@ + + + +RichText.richText - kvision + + + +kvision / pl.treksoft.kvision.form.text / RichText / richText
+
+

richText

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / <init>
+
+

<init>

+ +TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf()) +

Parameters

+

+cols - number of columns

+

+rows - number of rows

+

+value - text input value

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/cols.html b/api/pl.treksoft.kvision.form.text/-text-area-input/cols.html new file mode 100644 index 00000000..bb10e4d8 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/cols.html @@ -0,0 +1,21 @@ + + + +TextAreaInput.cols - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / cols
+
+

cols

+ +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 @@ + + + +TextAreaInput.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / getSnAttrs
+
+

getSnAttrs

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/index.html b/api/pl.treksoft.kvision.form.text/-text-area-input/index.html new file mode 100644 index 00000000..b356b410 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/index.html @@ -0,0 +1,231 @@ + + + +TextAreaInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput
+
+

TextAreaInput

+open class TextAreaInput : AbstractTextInput +

Basic textarea component.

+

Constructors

+ + + + + + + +
+

<init>

+
+TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf())
+

Properties

+ + + + + + + + + + + + + + + +
+

cols

+
+var cols: Int? +

Number of columns.

+
+

rows

+
+var rows: Int? +

Number of rows.

+
+

wrapHard

+
+var wrapHard: Boolean +

Determines if hard wrapping is enabled for the textarea element.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

value

+
+var value: String? +

Text input value.

+
+

Functions

+ + + + + + + + + + + +
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

Companion Object Functions

+ + + + + + + +
+

textAreaInput

+
+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.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/render.html b/api/pl.treksoft.kvision.form.text/-text-area-input/render.html new file mode 100644 index 00000000..d38d0d73 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/render.html @@ -0,0 +1,18 @@ + + + +TextAreaInput.render - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / render
+
+

render

+ +protected open fun render(): VNode +

Overrides Widget.render

+

Renders current component as a Snabbdom vnode.

+

Return
+Snabbdom vnode

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area-input/rows.html b/api/pl.treksoft.kvision.form.text/-text-area-input/rows.html new file mode 100644 index 00000000..5f0697f0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area-input/rows.html @@ -0,0 +1,21 @@ + + + +TextAreaInput.rows - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / rows
+
+

rows

+ +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 @@ + + + +TextAreaInput.textAreaInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / textAreaInput
+
+

textAreaInput

+ +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 @@ + + + +TextAreaInput.wrapHard - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextAreaInput / wrapHard
+
+

wrapHard

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / <init>
+
+

<init>

+ +TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) +

Parameters

+

+cols - number of columns

+

+rows - number of rows

+

+value - text input value

+

+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
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/cols.html b/api/pl.treksoft.kvision.form.text/-text-area/cols.html new file mode 100644 index 00000000..2a2c9bc0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/cols.html @@ -0,0 +1,15 @@ + + + +TextArea.cols - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / cols
+
+

cols

+ +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 @@ + + + +TextArea - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea
+
+

TextArea

+open class TextArea : AbstractText +

Form field textarea component.

+

Constructors

+ + + + + + + +
+

<init>

+
+TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+

Properties

+ + + + + + + + + + + + + + + + + + + +
+

cols

+
+var cols: Int? +

Number of columns.

+
+

input

+
+val input: TextAreaInput +

The actual input component.

+
+

rows

+
+var rows: Int? +

Number of rows.

+
+

wrapHard

+
+var wrapHard: Boolean +

Determines if hard wrapping is enabled for the textarea element.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

label

+
+var label: String? +

The label text bound to the text input element.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

validationInfo

+
+val validationInfo: HelpBlock +

Validation info component.

+
+

value

+
+open var value: String? +

Text input value.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

setEventListener

+
+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.

+
+

Companion Object Functions

+ + + + + + + +
+

textArea

+
+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.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-area/input.html b/api/pl.treksoft.kvision.form.text/-text-area/input.html new file mode 100644 index 00000000..b7bec406 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-area/input.html @@ -0,0 +1,16 @@ + + + +TextArea.input - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / input
+
+

input

+ +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 @@ + + + +TextArea.rows - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / rows
+
+

rows

+ +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 @@ + + + +TextArea.textArea - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / textArea
+
+

textArea

+ +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 @@ + + + +TextArea.wrapHard - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextArea / wrapHard
+
+

wrapHard

+ +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 @@ + + + +TextInputType.COLOR - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / COLOR
+
+

COLOR

+ +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 @@ + + + +TextInputType.EMAIL - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / EMAIL
+
+

EMAIL

+ +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 @@ + + + +TextInputType.PASSWORD - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / PASSWORD
+
+

PASSWORD

+ +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 @@ + + + +TextInputType.SEARCH - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / SEARCH
+
+

SEARCH

+ +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 @@ + + + +TextInputType.TEL - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / TEL
+
+

TEL

+ +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 @@ + + + +TextInputType.TEXT - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / TEXT
+
+

TEXT

+ +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 @@ + + + +TextInputType.URL - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType / URL
+
+

URL

+ +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 @@ + + + +TextInputType - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInputType
+
+

TextInputType

+enum class TextInputType +

Text input types.

+

Enum Values

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

TEXT

+
+
+

PASSWORD

+
+
+

EMAIL

+
+
+

TEL

+
+
+

COLOR

+
+
+

SEARCH

+
+
+

URL

+
+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/-init-.html b/api/pl.treksoft.kvision.form.text/-text-input/-init-.html new file mode 100644 index 00000000..33fb9e47 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/-init-.html @@ -0,0 +1,23 @@ + + + +TextInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / <init>
+
+

<init>

+ +TextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf()) +

Parameters

+

+type - text input type (default "text")

+

+value - text input value

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/autocomplete.html b/api/pl.treksoft.kvision.form.text/-text-input/autocomplete.html new file mode 100644 index 00000000..3ae2b0fd --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/autocomplete.html @@ -0,0 +1,21 @@ + + + +TextInput.autocomplete - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / autocomplete
+
+

autocomplete

+ +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 @@ + + + +TextInput.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / getSnAttrs
+
+

getSnAttrs

+ +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

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/index.html b/api/pl.treksoft.kvision.form.text/-text-input/index.html new file mode 100644 index 00000000..b0aaf546 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/index.html @@ -0,0 +1,222 @@ + + + +TextInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput
+
+

TextInput

+open class TextInput : AbstractTextInput +

Basic text component.

+

Constructors

+ + + + + + + +
+

<init>

+
+TextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf())
+

Properties

+ + + + + + + + + + + +
+

autocomplete

+
+var autocomplete: Boolean? +

Determines if autocomplete is enabled for the input element.

+
+

type

+
+var type: TextInputType +

Text input type.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

value

+
+var value: String? +

Text input value.

+
+

Functions

+ + + + + + + + + + + +
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

Companion Object Functions

+ + + + + + + +
+

textInput

+
+fun Container.textInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: TextInput.() -> Unit = null): TextInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/render.html b/api/pl.treksoft.kvision.form.text/-text-input/render.html new file mode 100644 index 00000000..9c969109 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/render.html @@ -0,0 +1,18 @@ + + + +TextInput.render - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / render
+
+

render

+ +protected open fun render(): VNode +

Overrides Widget.render

+

Renders current component as a Snabbdom vnode.

+

Return
+Snabbdom vnode

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text-input/text-input.html b/api/pl.treksoft.kvision.form.text/-text-input/text-input.html new file mode 100644 index 00000000..966ce879 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text-input/text-input.html @@ -0,0 +1,16 @@ + + + +TextInput.textInput - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / textInput
+
+

textInput

+ +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 @@ + + + +TextInput.type - kvision + + + +kvision / pl.treksoft.kvision.form.text / TextInput / type
+
+

type

+ +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.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text / <init>
+
+

<init>

+ +Text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false) +

Parameters

+

+type - text input type (default "text")

+

+value - text input value

+

+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
+

+ + diff --git a/api/pl.treksoft.kvision.form.text/-text/autocomplete.html b/api/pl.treksoft.kvision.form.text/-text/autocomplete.html new file mode 100644 index 00000000..51ad2ca4 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/autocomplete.html @@ -0,0 +1,15 @@ + + + +Text.autocomplete - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text / autocomplete
+
+

autocomplete

+ +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 @@ + + + +Text - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text
+
+

Text

+open class Text : AbstractText +

Form field text component.

+

Constructors

+ + + + + + + +
+

<init>

+
+Text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false)
+

Properties

+ + + + + + + + + + + + + + + +
+

autocomplete

+
+var autocomplete: Boolean? +

Determines if autocomplete is enabled for the input element.

+
+

input

+
+val input: TextInput +

The actual input component.

+
+

type

+
+var type: TextInputType +

Text input type.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

autofocus

+
+var autofocus: Boolean? +

Determines if the text input is automatically focused.

+
+

flabel

+
+val flabel: FieldLabel +

Form field label.

+
+

label

+
+var label: String? +

The label text bound to the text input element.

+
+

maxlength

+
+var maxlength: Int? +

Maximal length of the text input value.

+
+

placeholder

+
+var placeholder: String? +

The placeholder for the text input.

+
+

readonly

+
+var readonly: Boolean? +

Determines if the text input is read-only.

+
+

rich

+
+var rich: Boolean +

Determines if label can contain HTML code.

+
+

startValue

+
+var startValue: String? +

The value attribute of the generated HTML input element.

+
+

validationInfo

+
+val validationInfo: HelpBlock +

Validation info component.

+
+

value

+
+open var value: String? +

Text input value.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

setEventListener

+
+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.

+
+

Companion Object Functions

+ + + + + + + +
+

text

+
+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.

+
+

Inheritors

+ + + + + + + +
+

Password

+
+open class Password : Text +

Form field password component.

+
+ + diff --git a/api/pl.treksoft.kvision.form.text/-text/input.html b/api/pl.treksoft.kvision.form.text/-text/input.html new file mode 100644 index 00000000..be0c9234 --- /dev/null +++ b/api/pl.treksoft.kvision.form.text/-text/input.html @@ -0,0 +1,16 @@ + + + +Text.input - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text / input
+
+

input

+ +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 @@ + + + +Text.text - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text / text
+
+

text

+ +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 @@ + + + +Text.type - kvision + + + +kvision / pl.treksoft.kvision.form.text / Text / type
+
+

type

+ +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 @@ + + + +pl.treksoft.kvision.form.text - kvision + + + +kvision / pl.treksoft.kvision.form.text
+
+

Package pl.treksoft.kvision.form.text

+

Text input components, with password, text area and rich text area support.

+

Types

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

AbstractText

+
+abstract class AbstractText : SimplePanel, StringFormControl +

Base class for form field text components.

+
+

AbstractTextInput

+
+abstract class AbstractTextInput : Widget, FormInput +

Base class for basic text components.

+
+

Password

+
+open class Password : Text +

Form field password component.

+
+

RichText

+
+open class RichText : AbstractText +

Form field rich text component.

+
+

RichTextInput

+
+open class RichTextInput : AbstractTextInput +

Basic rich text component.

+
+

Text

+
+open class Text : AbstractText +

Form field text component.

+
+

TextArea

+
+open class TextArea : AbstractText +

Form field textarea component.

+
+

TextAreaInput

+
+open class TextAreaInput : AbstractTextInput +

Basic textarea component.

+
+

TextInput

+
+open class TextInput : AbstractTextInput +

Basic text component.

+
+

TextInputType

+
+enum class TextInputType +

Text input types.

+
+ + -- cgit