Text Input State Variable Reference

Table of contents


Introduction

Text Input state variables represent text inputs. Each rendered component will display according to the format specified in the state variable.

Constructor

Syntax

ctl.createPage({
	...,
	stateVarInfo:[
		{type:'textInput', ...},
	],
})

Parameters


Instance methods

Inherited methods

Note: The component() method returns a TextInputSvCmp.


Instance properties

Inherited properties


allCaps

If true, the value will be converted to all capitals when assigned due to user input or otherwise.

Value

A Boolean.


maxLength

The maximum length of a valid input string. Default: undefined.

Value

An integer Number.


minLength

The minimum length of a valid input string.

Value

An integer Number.


pattern

A RegExp for a valid input string.

Value

A RegExp.


size

The width of the input field in characters. Default: maxLength or 16.

Value

An integer Number.


Component attributes

Inherited attributes


DOM element properties