Timer"
From Documentation
Tmillsclare (talk | contribs) |
m ((via JWB)) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
*Java API: <javadoc>org.zkoss.zul.Timer</javadoc> | *Java API: <javadoc>org.zkoss.zul.Timer</javadoc> | ||
*JavaScript API: <javadoc directory="jsdoc">zul.utl.Timer</javadoc> | *JavaScript API: <javadoc directory="jsdoc">zul.utl.Timer</javadoc> | ||
+ | *Style Guide: N/A | ||
= 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 = | ||
Line 19: | Line 18: | ||
</source> | </source> | ||
+ | =Supported Events= | ||
− | + | {| class='wikitable' | width="100%" | |
− | |||
− | |||
− | |||
− | {| | ||
! <center>Name</center> | ! <center>Name</center> | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
|- | |- | ||
− | | <center>< | + | | <center><code>onTimer</code></center> |
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.Event</javadoc> | | '''Event:''' <javadoc>org.zkoss.zk.ui.event.Event</javadoc> | ||
− | Denotes the timer you specified has triggered an event. To know which timer, invoke the < | + | Denotes the timer you specified has triggered an event. To know which timer, invoke the <code>getTarget</code> method in the Event class. |
|} | |} | ||
+ | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/HtmlBasedComponent#Supported_Events | HtmlBasedComponent]] | ||
=Supported Children= | =Supported Children= | ||
Line 38: | Line 35: | ||
*NONE | *NONE | ||
− | =Use | + | =Use Cases= |
− | {| | + | {| class='wikitable' | width="100%" |
! Version !! Description !! Example Location | ! Version !! Description !! Example Location | ||
|- | |- | ||
Line 49: | Line 46: | ||
=Version History= | =Version History= | ||
− | + | {{LastUpdated}} | |
− | {| | + | {| class='wikitable' | width="100%" |
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- |
Latest revision as of 10:40, 12 January 2022
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
onTimer |
Event: Event
Denotes the timer you specified has triggered an event. To know which timer, invoke the |
- Inherited Supported Events: HtmlBasedComponent
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|