Class M.TabBarView
The is the prototype of any tab bar view. A tab bar view is a special variant of a toolbar
at the top or bottom of a page, that consists of up to five horizontally aligned tabs. An
M.TabBarView can be used the top navigation level for an application since it is always
visible an indicates the currently selected tab.
Defined in: tab_bar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Defines the position of the TabBar.
|
|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
setActiveTab(page)
This method activates a tab bar item based on a given page.
|
Field Detail
{String}
anchorLocation
Defines the position of the TabBar. Possible values are:
- M.BOTTOM => is a footer tab bar
- M.TOP => is a header tab bar
{String}
type
The type of this object.
Method Detail
setActiveTab(page)
This method activates a tab bar item based on a given page.
- Parameters:
- {String|M.PageView} page
- The page to the corresponding tab that is to be set active.