A Dojo mobile view is typically the main container for
widgets in a mobile application.
Fields
- backText
- A string that is displayed as the text for the Back button that
appears at upper left of the header. If the backText field
is specified and the backView field is not, the user's pressing
the Back button displays an empty view.
- backView
- A widget of type DojoMobileView. The view is displayed when the
user clicks the Back button.
- headerTitle
- A string that is displayed as the title text at the top of the
view. Setting this value to null or an empty string causes the disappearance
of the header area
If the view contains a widget of type TabContainer,
hide the view header by setting the headerTitle field to null.
- isSwappable
- scrollHorizontally
- A boolean value that indicates whether to allow left-and-right
scrolling in the view.
- scrollVertically
- A boolean value that indicates whether to allow up-and-down scrolling
in the view.
- selected
- A boolean value that indicates whether to display the view. In
most cases, display only one view in a container.
- toolBar
- An optional array of objects of type DojoMobileToolBarButton.
Example
Use of this widget requires statement like this:
import dojo.mobile.widgets.DojoMobileView;