From Documentation
Revision as of 10:41, 19 January 2022 by Hawk (talk | contribs) (correct highlight (via JWB))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Stop.png 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()"/>

Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.