Timer - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

<TIMER/> : Widget

The <TIMER/> widget is used to fire a set of events after an elapsed period of time.

Restrictions:

Attributes :(inherited attributes)

Name Type Default Description Req
enabled boolean true Enables / Disables the timer false
action string null A string of events that will execute AFTER the timer has elapsed. true
frequency integer null Specifies the time in milliseconds between timer action. Can alos be expressed in seconds by appending s onto the value (10s) true

Events

Name Type Description
start() Starts the timer using <id>.start()
stop() Stops the timer, cancelling it, using <id>.stop()
restart() Restarts the timer, using <id>.restart()

Examples

(fig. a)

VAR used to hold a selection state and a calculated value

<FML>
    <TIMER id="t1" action="toast('welcome')" frequency="5s"/>
</FML>

logo See it in Action

Other Widgets You May Find Useful:

⚠️ **GitHub.com Fallback** ⚠️