OnsTextInput

open class OnsTextInput(type: <Error class: unknown class> = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, maxlength: Int? = null, className: String? = null, init: OnsTextInput.() -> Unit? = null)

OnsenUI 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

maxlength

maximum length of the text input

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, inputId: String? = null, maxlength: Int? = null, className: String? = null, init: OnsTextInput.() -> Unit? = null)

Creates a text input component.

Properties

Link copied to clipboard

Whether the placeholder will be animated in Material Design.

Link copied to clipboard

The ID of the input element.

Link copied to clipboard

A modifier attribute to specify custom styles.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun render(): <Error class: unknown class>