Developer reference The XUL Components Components Button
From Documentation
Contents |
Button
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.
<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"/>
Class Name
org.zkoss.zul.Button
Supported Child Components
*NONE
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]
|
Properties
| | | | |
|---|---|---|---|
| | Sets the direction of button
Value:normal | reverse | | |
| | Sets whether it is disabled or not | | |
| | Provides a hyper link | | |
| | Sets the orientation of button
Value:horizontal | vertical | | |
| | Sets the target frame or window | | |
| | Sets the tab order of this component | | |
Methods
| | | |
|---|---|---|
| isChildable() | Determines whether it accepts child components
Value: false Note: No child is allowed. | boolean |
Inherited From
| |
|---|
| |
| |
| |
| |
| |
