Button"
From Documentation
m (→Example) |
|||
Line 28: | Line 28: | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
|- | |- | ||
− | | | + | | <center><tt>onClick</tt></center> |
− | | | + | | [#MouseEvent org.zkoss.zk.ui.event.MouseEvent] |
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes user has clicked the component. </tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onRightClick</tt></center> | ||
+ | | [#MouseEvent org.zkoss.zk.ui.event.MouseEvent] | ||
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes user has right-clicked the component.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onDoubleClick</tt></center> | ||
+ | | [#MouseEvent org.zkoss.zk.ui.event.MouseEvent] | ||
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes user has double-clicked the component.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onFocus</tt></center> | ||
+ | | [#Event org.zkoss.zk.ui.event.Event] | ||
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes when a component gets the focus.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onBlur</tt></center> | ||
+ | | [#Event org.zkoss.zk.ui.even.Event] | ||
+ | |||
+ | |||
+ | <tt>Description: Denotes when a component loses the focus.</tt> | ||
+ | |||
|} | |} | ||
Revision as of 11:09, 27 April 2010
Button
Employment/Purpose
You could assign a label and an image to a button by the label and image properties. If both are specified, the dir property control which is displayed up front, and the orient property controls whether the layout is horizontal or vertical.
Example
<button label="Left" image="/img/folder.gif" width="125px"/>
<button label="Right" image="/img/folder.gif" dir="reverse" width="125px"/>
<button label="Above" image="/img/folder.gif" orient="vertical" width="125px"/>
<button label="Below" image="/img/folder.gif" orient="vertical" dir="reverse" width="125px"/>
Supported events
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
| |
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
| |
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
| |
[#Event org.zkoss.zk.ui.event.Event]
| |
[#Event org.zkoss.zk.ui.even.Event]
|
Supported Children
*NONE
Use cases
Version | Description | Example Location |
---|---|---|
5.0+ |
Version History
Version | Date | Content |
---|---|---|
5.x.x | x/x/20xx | Initialization |