Development tools : XUI Mobile editor : Adding Mobile widgets : XUI Mobile widgets : CheckBox
  
CheckBox
A CheckBox widget is used to select or clear an option.
Derived base
dojox.mobile.CheckBox
Properties
id
A unique ID string for the widget.
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
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.
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.
checkedValue
This property specifies the value of the widget when the widget is selected.
unCheckedValue
The value of the widget when the widget is not selected.
See also
CheckBox
ECA editor support
Event that can be added to the CheckBox widget with the ECA editor
onClick
This event is called when you tap the widget.
Properties that can be configured for the CheckBox 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 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.
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, Actions
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the CheckBox widget with the ECA editor
set(name,value)
Set a value for a widget property.
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