Age Output state variables represent age outputs. The state variable value is the age in minutes. If the set value is zero or positive, then the value will be updated every minute. The updates pause while the app is inactive and resume (if the value is still zero or positive) when it becomes active again. The rendered output is in hh:mm format. A negative value (the default is -1) means "no age" and is rendered as '-'; it stops the update timer.
If the limit property is greater than zero, then the age will be rendered in red when strictly greater than the limit value. A limit of zero or less disables the warning.
'ageOutput', class: AgeSv (internal, not exported)ctl.createPage({
...,
stateVarInfo:[
{type:'ageOutput', ...},
],
})
infoinfo object can contain the following properties, but subclasses of StateVar may have additional properties:info properties.info properties.info properties.dflt (optional)-1 (no age).limit (optional)limit property. The default is -1 (no warning).Note: The component() method returns an AgeOutputSvCmp (a subclass of the Time Output component). The value set must be a Number or an Error, otherwise an assertion fails.
limitWhen limit is greater than zero, the age will be rendered with a warning class name when the state variable value is strictly greater than the limit. Otherwise (including when limit is zero or negative), the warning class name is omitted. The warning class typically sets a red font color. The default is -1.
A number.
ageOutput Component will render an <span> that contains the contents.<span> content will be synchronized with the state variable value.<span> element will have a className that contains svIo_timeOutput (the age output shares the Time Output component; there is no svIo_ageOutput class)<span> element will have a className that contains warning if the age is greater than a positive limit.