A checkbox.
<window title="Checkbox demo" border="normal" width="350px"> <checkbox id="apple" label="Apple" onCheck="doChecked()" /> <checkbox id="orange" label="Orange" onCheck="doChecked()" /> <checkbox id="banana" label="Banana" onCheck="doChecked()" /> <hbox>You have selected :<label id="fruit2"/></hbox> <zscript> void doChecked() { fruit2.value = (apple.isChecked() ? apple.label+' ' : "") + (orange.isChecked() ? orange.label+' ' : "") + (banana.isChecked() ? banana.label+' ' : ""); } </zscript> </window>
Name |
Event Type |
---|---|
|
|
|
|
|
|
|
|
onCheck |
|
Name |
Description |
Return Data Type |
---|---|---|
|
Appends interior attributes for generating the HTML |
|
|
Returns the attributes used by the embedded HTML LABEL tag. |
|
|
Appends exterior attributes for generating the HTML span tag (the event relevant attribute). |
|