OnsText
constructor(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, maxlength: Int? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsText.() -> Unit? = null)(source)
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
maxlength
maximum length of the text input
label
label text bound to the input element
rich
determines if label can contain HTML code
className
CSS class names
init
an initializer extension function