ToolBarButton
A ToolBarButton widget is used to invoke an event or an action when you tap it. The ToolBarButton widget is typically placed in the Heading widget.
Derived base
dojox.mobile.ToolBarButton
Properties
id
A unique ID string for the widget.
icon
An icon to be displayed on the widget.
label
The text to be displayed as the label of the widget.
moveTo
The id of the transition destination view.
selected
false
This is the default value. The item is not selected by default.
true
The item is highlighted to indicate that it is selected by default.
transition
The animated transition effect for the widget.
transitionDir
1
This is the default value. Transition forward.
-1
Transition backward.
arrow
null
The button is a rectangle.
right
The button is a rectangle with an arrowhead towards the right side.
left
The button is a rectangle with an arrowhead towards the left side.
defaultColor
This property specifies the default color of the button.
selColor
The color of the button when you tap it.
ECA editor support
Events that can be added to the ToolBarButton widget with the ECA editor
onClick
This event is called when you tap the widget.
onTouchStart
This event is called when you touch the widget.
Properties that can be configured for the ToolBarButton widget with the ECA editor
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
label
The text to be displayed as the label of the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the ToolBarButton 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
See also