Text Input state variables represent text inputs. Each rendered component will display according to the format specified in the state variable.
'textInput', class: TextInputSvctl.createPage({
...,
stateVarInfo:[
{type:'textInput', ...},
],
})
infoinfo object can contain the following properties, but subclasses of StateVar may have additional properties:info properties.info properties.info properties.allCaps (optional)maxLength (optional)minLength (optional)pattern (optional)size (optional)Note: The component() method returns a TextInputSvCmp.
allCapsIf true, the value will be converted to all capitals when assigned due to user input or otherwise.
A Boolean.
maxLengthThe maximum length of a valid input string. Default: undefined.
An integer Number.
minLengthThe minimum length of a valid input string.
An integer Number.
patternA RegExp for a valid input string.
A RegExp.
sizeThe width of the input field in characters. Default: maxLength or 16.
An integer Number.
textInput Component will render an <input type="text"> with maxLength, minLength, pattern, and size attributes set according to the state variable instance properties.maxLength, minLength, pattern, and size attributes will be synchronized with the respective state variable properties.<input> element will have a className that contains 'svIo_textInput'.