Timer"
From Documentation
Maya001122 (talk | contribs) m (Created page with '{{ZKDevelopersGuidePageHeader}} A timer is an invisible component used to send the <tt>onTimer</tt> event to the server at a specified time or period. You can control a timer by…') |
m (correct highlight (via JWB)) |
||
Line 1: | Line 1: | ||
{{ZKDevelopersGuidePageHeader}} | {{ZKDevelopersGuidePageHeader}} | ||
− | A timer is an invisible component used to send the < | + | A timer is an invisible component used to send the <code>onTimer</code> event to the server at a specified time or period. You can control a timer by using the <code>start</code> and <code>stop</code> methods. |
[[Image:10000000000000E50000003490E811F6.png]] | [[Image:10000000000000E50000003490E811F6.png]] |
Latest revision as of 10:41, 19 January 2022
This documentation is for an older version of ZK. For the latest one, please click here.
A timer is an invisible component used to send the onTimer
event to the server at a specified time or period. You can control a timer by using the start
and stop
methods.
<window title="Timer demo" border="normal">
<label id="now"/>
<timer id="timer" delay="1000" repeats="true"
onTimer="now.setValue(new Date().toString())"/>
<separator bar="true"/>
<button label="Stops timer" onClick="timer.stop()"/>
<button label="Starts timer" onClick="timer.start()"/>
</window>