Text Input state variables represent text inputs. Each rendered component will display according to the format specified in the state variable.
'emailInput', class: EmailInputSvctl.createPage({
...,
stateVarInfo:[
{type:'emailInput', ...},
],
})
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 EmailInputSvComponent.
isValid()isValid()
Return true if the current state variable value is considered a valid email address. It must contain at least one character, followed by a @, followed by at least one character, followed by a ., followed by at least one character.
A Boolean. Returns true if the current state variable value is considered valid and false otherwise.
emailInput Component will render an <input type="email"> element.<input> element's value will be synchronized with the value of the associated state variable.<input> element will have a className that contains 'svIo_emailInput'.