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 able to be running when that page is visible.
Timers have the following attributes/properties:
Property | Description | Required | In template | Script |
---|---|---|---|---|
name | The name of the timer | No | _timernn | Read-only |
interval | Number of milliseconds between each OnTimer event | Yes | N/A | Yes |
enabled | Whether the timer is running or not | No | false | Yes |
The following methods are supported by timers:
Method | Description |
---|---|
start() | Start the timer. Equivalent to setting the enabled property to true. |
stop() | Stop the timer. Equivalent to setting the enabled property to false. |