From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-text-input/index.html | 227 +++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 api1/pl.treksoft.kvision.form.text/-text-input/index.html (limited to 'api1/pl.treksoft.kvision.form.text/-text-input/index.html') diff --git a/api1/pl.treksoft.kvision.form.text/-text-input/index.html b/api1/pl.treksoft.kvision.form.text/-text-input/index.html new file mode 100644 index 00000000..f39db4f7 --- /dev/null +++ b/api1/pl.treksoft.kvision.form.text/-text-input/index.html @@ -0,0 +1,227 @@ + + + +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.

+
+

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.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit