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 rendered output is in hh:mm format.
If the limit property is zero or positive, then the age will be rendered in red when greater than or equal to the limit value.
'ageOutput', class: AgeOutputSvctl.createPage({
...,
stateVarInfo:[
{type:'ageOutput', ...},
],
})
infoinfo object can contain the following properties, but subclasses of StateVar may have additional properties:
Note: The component() method returns a AgeOutputSvComponent.
limitWhen limit is zero or positive, the age will be rendered with a warning class name when the state variable value is greater than or equal to the limit. Otherwise, the warning class name is omitted. The warning class typically sets a red font color.
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_ageOutput<span> element will have a className that contains warning if the age is past the limit.