<HTML>
<HEAD>
<meta charset="UTF-8">
<title>TextInput - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.form.text</a>&nbsp;/&nbsp;<a href="./index.html">TextInput</a><br/>
<br/>
<h1>TextInput</h1>
<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">TextInput</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-abstract-text-input/index.html"><span class="identifier">AbstractTextInput</span></a></code>
<p>Basic text component.</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="-init-.html">&lt;init&gt;</a></p>
</td>
<td>
<code><span class="identifier">TextInput</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput$<init>(pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)))/type">type</span><span class="symbol">:</span>&nbsp;<a href="../-t-e-x-t-i-n-p-u-t-t-y-p-e/index.html"><span class="identifier">TEXTINPUTTYPE</span></a>&nbsp;<span class="symbol">=</span>&nbsp;TEXTINPUTTYPE.TEXT<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput$<init>(pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)))/value">value</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput$<init>(pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)))/classes">classes</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html"><span class="identifier">Set</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;setOf()<span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="autocomplete.html">autocomplete</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">autocomplete</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span></code>
<p>Determines if autocomplete is enabled for the input element.</p>
</td>
</tr>
<tr>
<td>
<p><a href="type.html">type</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">type</span><span class="symbol">: </span><a href="../-t-e-x-t-i-n-p-u-t-t-y-p-e/index.html"><span class="identifier">TEXTINPUTTYPE</span></a></code>
<p>Text input type.</p>
</td>
</tr>
</tbody>
</table>
<h3>Inherited Properties</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="../-abstract-text-input/autofocus.html">autofocus</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">autofocus</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span></code>
<p>Determines if the text input is automatically focused.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/disabled.html">disabled</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">disabled</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code>
<p>Determines if the field is disabled.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/maxlength.html">maxlength</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">maxlength</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span></code>
<p>Maximal length of the text input value.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/name.html">name</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">name</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
<p>The name attribute of the generated HTML input element.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/placeholder.html">placeholder</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">placeholder</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
<p>The placeholder for the text input.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/readonly.html">readonly</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">readonly</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span></code>
<p>Determines if the text input is read-only.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/size.html">size</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">size</span><span class="symbol">: </span><a href="../../pl.treksoft.kvision.form/-i-n-p-u-t-s-i-z-e/index.html"><span class="identifier">INPUTSIZE</span></a><span class="symbol">?</span></code>
<p>The size of the input.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/start-value.html">startValue</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">startValue</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
<p>The value attribute of the generated HTML input element.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/value.html">value</a></p>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">value</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
<p>Text input value.</p>
</td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="get-sn-attrs.html">getSnAttrs</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">getSnAttrs</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol">&lt;</span><a href="../../pl.treksoft.kvision.core/-string-pair.html"><span class="identifier">StringPair</span></a><span class="symbol">&gt;</span></code>
<p>Returns list of element attributes in the form of a List.</p>
</td>
</tr>
<tr>
<td>
<p><a href="render.html">render</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">render</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">VNode</span></code>
<p>Renders current component as a Snabbdom vnode.</p>
</td>
</tr>
</tbody>
</table>
<h3>Inherited Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="../-abstract-text-input/after-insert.html">afterInsert</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">afterInsert</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.text.AbstractTextInput$afterInsert(com.github.snabbdom.VNode)/node">node</span><span class="symbol">:</span>&nbsp;<span class="identifier">VNode</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Method called after inserting Snabbdom vnode into the DOM.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/blur.html">blur</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">blur</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Makes the input element blur.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/focus.html">focus</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">focus</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Makes the input element focused.</p>
</td>
</tr>
<tr>
<td>
<p><a href="../-abstract-text-input/get-sn-class.html">getSnClass</a></p>
</td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">getSnClass</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html"><span class="identifier">List</span></a><span class="symbol">&lt;</span><a href="../../pl.treksoft.kvision.core/-string-bool-pair.html"><span class="identifier">StringBoolPair</span></a><span class="symbol">&gt;</span></code>
<p>Returns list of CSS class names for current widget in the form of a List.</p>
</td>
</tr>
</tbody>
</table>
<h3>Companion Object Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="text-input.html">textInput</a></p>
</td>
<td>
<code><span class="keyword">fun </span><a href="../../pl.treksoft.kvision.core/-container/index.html"><span class="identifier">Container</span></a><span class="symbol">.</span><span class="identifier">textInput</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput.Companion$textInput(pl.treksoft.kvision.core.Container, pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.text.TextInput, kotlin.Unit)))/type">type</span><span class="symbol">:</span>&nbsp;<a href="../-t-e-x-t-i-n-p-u-t-t-y-p-e/index.html"><span class="identifier">TEXTINPUTTYPE</span></a>&nbsp;<span class="symbol">=</span>&nbsp;TEXTINPUTTYPE.TEXT<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput.Companion$textInput(pl.treksoft.kvision.core.Container, pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.text.TextInput, kotlin.Unit)))/value">value</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput.Companion$textInput(pl.treksoft.kvision.core.Container, pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.text.TextInput, kotlin.Unit)))/classes">classes</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html"><span class="identifier">Set</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;setOf()<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.text.TextInput.Companion$textInput(pl.treksoft.kvision.core.Container, pl.treksoft.kvision.form.text.TEXTINPUTTYPE, kotlin.String, kotlin.collections.Set((kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.text.TextInput, kotlin.Unit)))/init">init</span><span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">TextInput</span></a><span class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="./index.html"><span class="identifier">TextInput</span></a></code>
<p>DSL builder extension function.</p>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>