Development tools : XUI Mobile editor : Adding Mobile widgets : XUI Mobile widgets : RadioButton
  
RadioButton
A group of RadioButton widgets are used to display a discrete set of options from which only one can be selected.
Derived base
dojox.mobile.RadioButton
Properties
id
A unique ID string for the widget.
dataName
The name of a data element to which the widget is bound. If no data to be sent to the server, leave this property blank.
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
value
The value of the widget.
checked
false
This is the default value. The widget is not selected an is displayed as it is.
true
The widget is selected. A check mark is displayed on the right side of the widget.
label
The text to be displayed as the label of the widget.
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
groupName
A name for a group of RadioButton widgets. In a group, only one RadioButton widget can be selected. However, multiple RadioButton widgets from different groups can be selected simultaneously.
submitValue
The widget value to be sent to the server.
ECA editor support
Event that can be added to the RadioButton widget with the ECA editor
onChange
Description: This event is called when the value of the widget is changed.
Properties that can be configured for the RadioButton widget with the ECA editor
focused
false
The widget does not get focus.
true
The widget gets focus.
Applicable ECA part: Condition, Expression in Condition
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
Applicable ECA part: Condition, Expression in Condition, Actions
checked
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
Applicable ECA part: Condition, Expression in Condition, Actions
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
Applicable ECA part: Condition, Expression in Condition
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the RadioButton widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
reset()
Reset the value of the widget to the initial value.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
compare(var1,var2)
0
var1 is same as var2.
1
var1 is after var2 in the dictionary order.
-1
var1 is before var2 in the dictionary order.
Example: compare("Hello","World") returns -1.
Applicable ECA part: Expression in Condition
See also
XUI Mobile widgets