XUL Programmer's Reference Manual
|
||||||||||||||||||||||||
<checkbox>
The <checkbox> element provides a special button widget that the user can check and uncheck. Unlike radio buttons, checkboxes are not grouped with one another in any particular way, so their checking and unchecking is not linked or mutually exclusive.
|
||||||||||||||||||||||||
value | ||||||||||||||||||||||||
Description
The value attribute specifies the name displayed for the checkbox item.Syntax <checkbox value="string" />Example Notes<checkboxvalue="Honda"/> <checkbox value="Isuzu" /> None. |
||||||||||||||||||||||||
checked | ||||||||||||||||||||||||
Description
When checked is set to "true", the checkbox is pre-selected.Syntax checked="[true | false]"Example Notes None. |
||||||||||||||||||||||||
oncommand | ||||||||||||||||||||||||
Description
oncommand is an optional event listener attribute for the checkbox.Syntax <checkbox id="string" value="string" oncommand="event handler code" />Example <checkbox id="whichCar" value="Honda" oncommand="doHondaPrep()" />Notes None.
|
||||||||||||||||||||||||
crop | ||||||||||||||||||||||||
Description
crop is an optional attribute which part of the checkbox's text, if any, is clipped when the parent container doesn't provide enough space.Syntax Example<checkbox crop="left | right | none" /> Notes<checkbox value="Long Name For This Checkbox" crop="left" /> None.
|
||||||||||||||||||||||||
imgalign | ||||||||||||||||||||||||
Description
imgalign is an optional attribute for aligning the imported graphic with the checkbox.Syntax Example<checkbox src="graphic" imgalign=" absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top" /> <checkbox src="newbutton.gif" imgalign="absmiddle" />Notes None.
|
||||||||||||||||||||||||
src | ||||||||||||||||||||||||
Description
src is an optional attribute for specifying graphic images to use in place of the the actual checkbox.Syntax <checkbox src="chrome or regular url to graphic" />Example <checkbox src="chrome://global/newbox.gif" />Notes None.
|