Numeric output state variables represent user number inputs. Each rendered component will display according to the format specified in the state variable.
'numericOutput', class: NumOutputSvctl.createPage({
...,
stateVarInfo:[
{type:'numericOutput', ...},
],
})
infoinfo object can contain the following properties, but subclasses of StateVar may have additional properties:fmt (optional)
The fmt parameter can be one of the following:
fmtStr). If a format string is used, then a NumFmt instance will be created using this string along with any info.min and info.amx parameters. if no fmt is provided, a format string of '8' is assumed.
min (optional)
The minimum valid value. This is ignored if a NumFmt instance is provided in the fmt parameter.
max (optional)
The maximum valid value. This is ignored if a NumFmt instance is provided in the fmt parameter.
Note: If the info.id contains a subName (e.g., 'myPage_mySv_kg'), it will be considered a unit specifier. If the Component has the showUnits attribute, the unit abbreviation for the unit subName will be displayed after the number.
Note: The component() method returns a NumOutputSvCmp.
fmtA NumFmt instance specifies the desired numeric format and limits.
A NumFmt instance.
maxThe maximum valid value. Sets/gets fmt.max.
A Number.
minThe minimum valid value. Sets/gets fmt.min.
A Number.
isNumberAlways true for numericInput.
A Boolean.
isUnitTrue if the state variable has a unit subName.
A Boolean.
unitThe first subName. For example, 'kg' if the state variable ID is 'myPage_mySv_kg'.
A String.
<span> with the value attribute set according to the state variable value.<span> contents will be synchronized with the state variable value.<span> element will have a className that contains 'svIo_numOutput'.