Age Output State Variable Reference

Table of contents


Introduction

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.

Constructor

Syntax

ctl.createPage({
	...,
	stateVarInfo:[
		{type:'ageOutput', ...},
	],
})

Parameters


Instance methods

Inherited methods

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.


Instance properties

Inherited properties


limit

When 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.

Value

A number.


Component attributes

Inherited attributes


DOM element