kvision / pl.treksoft.kvision.onsenui.form / OnsTextInput / <init>

<init>

(js) OnsTextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, classes: Set<String> = setOf(), init: (OnsTextInput.() -> Unit)? = null)

Creates a text input component.

Parameters

type - text input type (default "text")

value - text input value

placeholder - the placeholder for the text input

floatLabel - whether the placeholder will be animated in Material Design

inputId - the ID of the input element

classes - a set of CSS class names

init - an initializer extension function

Constructor
Creates a text input component.