Timer"
From Documentation
Jumperchen (talk | contribs) |
|||
Line 9: | Line 9: | ||
= Employment/Purpose = | = Employment/Purpose = | ||
− | Timer is a special component that is invisible. It fires one or more org.zkoss.zk.ui.event.Event after a specified delay | + | 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. |
− | |||
− | |||
= Example = | = Example = |
Revision as of 07:38, 29 July 2011
Timer
Employment/Purpose
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.
Example
<label id="now" />
<timer id="timer" delay="1000" repeats="true"
onTimer="now.setValue(new Date().toString())" />
Supported Events
Event: Event
Denotes the timer you specified has triggered an event. To know which timer, invoke the getTarget method in the Event class. |
- Inherited Supported Events: HtmlBasedComponent
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|