OnsText

open class OnsText(type: <Error class: unknown class> = 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)

Onsen UI 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

Constructors

Link copied to clipboard
constructor(type: <Error class: unknown class> = 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)

Creates a form field text component.

Properties

Link copied to clipboard
var autocomplete: <Error class: unknown class>

Determines if autocomplete is enabled for the input element.

Link copied to clipboard

Whether the placeholder will be animated in Material Design.

Link copied to clipboard
Link copied to clipboard

A modifier attribute to specify custom styles.

Link copied to clipboard
var type: <Error class: unknown class>

Text input type.