Timer is a special component that is invisible. It fires one or more org.zkoss.zk.ui.event.Event after a specified delay.
Notice that the timer won't fire any event until it is attached to a page.
<label id="now"/> <timer id="timer" delay="1000" repeats="true" onTimer="now.setValue(new Date().toString())"/>
Property |
Description |
Data Type |
Default Value |
---|---|---|---|
|
Sets the delay, the number of milliseconds between successive action events. Note : 0 means immediately |
|
0 |
|
Sets whether the timer shall send Event repeatedly. Values : |
|
|
|
Start or stops the timer. Values : |
|
|