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

<init>

(js) OnsText(type: TextInputType = TextInputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String> = setOf(), init: (OnsText.() -> Unit)? = null)

Creates a form field text 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

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

classes - a set of CSS class names

init - an initializer extension function

Constructor
Creates a form field text component.