sap.apb.TabPage class

A TabPage is a basic container for a tab-based mobile application screen.

Usually one page is displayed at a time and users can navigate to other TabPage through the tab-button located at the bottom of the screen.

Version: 1.0

Syntax

new TabPage( [sId], [mSettings] )

Constructor for a new TabPage. Accepts an object literal <code>mSettings</code> that defines initial property values, aggregated and associated objects as well as event handlers. If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes). The supported settings are:
  • Properties
    • #getTabText tabText : string
    • #getTabIcon tabIcon : sap.ui.core.URI
    • #getTabBadge tabBadge : string
  • Aggregations
  • Associations
  • Events
In addition, all settings applicable to the base type sap.m.Page#constructor sap.m.Page can be used as well.

Extends

Parameters

Name Type Argument Description
sId string (optional) id for the new control, generated automatically if no id is given
mSettings object (optional) initial settings for the new control

Methods

Name Description
extend( sClassName, [oClassInfo], [FNMetaImpl] )  
getTabBadge() Getter for property <code>tabBadge</code>. tabBadge is the badge text to be shown on the tab button Default value is empty/<code>undefined</code>
getTabIcon() Getter for property <code>tabIcon</code>. tabIcon is the icon to be shown on the tab button Default value is empty/<code>undefined</code>
getTabText() Getter for property <code>tabText</code>. tabText is the text to be shown on the tab button Default value is empty/<code>undefined</code>
setTabBadge( sTabBadge ) Setter for property <code>tabBadge</code>. Default value is empty/<code>undefined</code>
setTabIcon( sTabIcon ) Setter for property <code>tabIcon</code>. Default value is empty/<code>undefined</code>
setTabText( sTabText ) Setter for property <code>tabText</code>. Default value is empty/<code>undefined</code>

Source

TabPage.API.js, line 11.