Button is one of the core elements and supported well on on technologies.
Properties
Property |
Fires Events |
Possible Values |
Notes |
---|---|---|---|
dir (String) |
No |
forward,reverse |
Sets the order of image to label representation |
group (String) |
No |
|
Identifier for button groups in the case of radio and checkbox typed buttons |
image (String) |
No |
PNG, JPEG, GIF |
URL is relative to XUL document |
label (String) |
No |
|
|
onclick (String) |
No |
"controller.method()" format |
|
type (String) |
No |
radio, checkbox or empty for plain button |
|
disabled (bool) |
No |
|
|
selected (bool) |
Yes |
|
Only has meaning in the case of radio and checkbox buttons |
Methods
doClick() - Programatically initiate a click. This should really never be done and any seeming need to do so should be considered a failure of architecture.
Sample usage
<button label="A Label" onclick="handler.doSomething('A')/>