Timers, while not widgets strictly speaking, are defined in the same way as widgets. They allow you to define a recurring timed event. Timers may be associated with pages or the system object - the difference being that timers associated with pages are only available when that page is visible.
Timers have the following attributes/properties:
Property | Description | Required | In template | Default | Script |
---|---|---|---|---|---|
name | The name of the timer | No | _timernn | Read-only | |
interval | Number of milliseconds between each event | Yes | N/A | Yes | |
enabled | Controls whether the timer is running or not | No | false | Yes |
The following methods are supported by timers:
Method | Description |
---|---|
start() | Start the timer |
stop() | Stop the timer |