A Button widget is used to invoke an event or an action when you tap the button.
Derived base
dojox.mobile.Button
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.
type
button
The button is used for invoking the general events or actions except submitting data to the server.
submit
The button is used for submitting the data to the server.
label
The text to be displayed as the label of the widget.You must define the label of the widget in this property or in the dataNameForLabel property.
dataNameForLabel
The name of a data element to which the widget is bound. The value of the data element is displayed as the label of the widget. You can define the label of the widget in this property or in the label property.
ECA editor support
Event that can be added to the Button widget with the ECA editor
onClick
This event is called when you tap the widget.
Properties that can be configured for the Button 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
value
The value of the widget.
Applicable ECA part: Expression in Condition, Actions
label
The text to be displayed as the label of the widget.
Applicable ECA part: Expression in Condition, Actions
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition, type
button
The button is used for invoking the general events or actions except submitting data to the server.
submit
The button is used for submitting the data to the server.
Applicable ECA part: Expression in Condition
Functions that can be configured for the Button widget with the ECA editor