XUL Programmer's Reference Manual
|
||||||||||||||||||||||||||||
<radio>
A <radio> element appears within a radiogroup. Within a radiogroup, only one radio item can be selected at any one time.
|
||||||||||||||||||||||||||||
value | ||||||||||||||||||||||||||||
Description
The value attribute specifies the name displayed for the radio item.Syntax <radio value="string" />Example Notes<radio value="Honda"/> <radio value="Isuzu" /> None. |
||||||||||||||||||||||||||||
checked | ||||||||||||||||||||||||||||
Description
When checked is set to "true", the radio item is pre-selected in the radiogroup.Syntax checked="[true | false]"Example Notes None. |
||||||||||||||||||||||||||||
oncommand | ||||||||||||||||||||||||||||
Description
oncommand is an optional event listener attribute for the radio item.Syntax <radio id="string" value="string" oncommand="event handler code" />Example <radio id="saveKey" value="Honda" oncommand="doHondaPrep()" />Notes None.
|
||||||||||||||||||||||||||||
crop | ||||||||||||||||||||||||||||
Description
crop is an optional attribute which part of the radio item's text, if any, is clipped when the parent container doesn't provide enough space.Syntax Example<radio crop="left | right | none" /> Notes<radio value="Long Name For This Radio Item" crop="left" /> None.
|
||||||||||||||||||||||||||||
imgalign | ||||||||||||||||||||||||||||
Description
imgalign is an optional attribute for aligning the imported graphic with the radio item.Syntax Example<radio src="graphic" imgalign=" absbottom | absmiddle | baseline | bottom | left | middle | right | texttop | top" /> <radio src="newbutton.gif" imgalign="absmiddle" />Notes None.
|
||||||||||||||||||||||||||||
src | ||||||||||||||||||||||||||||
Description
src is an optional attribute for specifying graphic images to use in place of the radio button itself.Syntax <radio src="chrome or regular url to graphic" />Example <radio src="chrome://global/newradio.gif" />Notes None.
|
||||||||||||||||||||||||||||
group | ||||||||||||||||||||||||||||
Description
group specifies the <radiogroup> to which the radio item belongs.Syntax <radio group="id of radiogroup" />Example Notes<radiogroup id="biggy" > <radio group="biggy" value="red" /> <radio value="blue" /> </radiogroup> None.
|