DojoMobileView
The DojoMobileView widget is a container for widgets in a mobile application. Mobile applications are made up of one or more views, and each of the views contains the tabs, lists, or other widgets. The view has a header area across the top, with an optional button for navigating back to the previous view. The views are declared as part of the initialUI for the Rich UI handler, if necessary.
Note:
To import the selected sample, you must install
and use the local help.
Note:
Before you turn on a view's swappable property, ensure that its sibling views all have
swappable feature turned on. Because if a view is initialized, you cannot modify its following
properties:
- scrollVertically
- scrollHorizontally
- isSwappable
Properties
- toolbar
- An array of DojoMobileToolbarButton widgets that display in the header of the view.
- headerTitle
- The title text that displays on the top of the view.
- backText
- The text for the header back button that appears in the upper left of the header. If the backText is specified and the backView is not specified, pressing the back button jumps to an empty view.
- backView
- The view that shows when the back button is clicked.
- selected
- If the selected value is true, the view displays on the page. Otherwise, the view hides. You can only have one selected view in a container.
- scrollVertically
- Indicates whether the view can scroll vertically.
- scrollHorizontally
- Indicates whether the view can scroll horizontally.
- isSwappable
- Indicates whether the view is swappable if it stays with other swappable views at the same hierarchy.
- children
- An array of child widgets.