The TabContainer control represents a collection of tabs with associated content.
Since: 1.34. 
Event Summary
itemClose(oControlEvent)Fired when an item is closed. itemSelect(oControlEvent)Fired when an item is pressed. Method Summary
sap.m.TabContainer.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.TabContainer with name sClassName and enriches it with the information contained in oClassInfo. _toTabStripItem(vItem)Finds the sap.m.TabStripItem corresponding to a given sap.m.TabContainerItem. attachAddNewButtonPress(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the addNewButtonPress event of this sap.m.TabContainer. attachItemClose(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the itemClose event of this sap.m.TabContainer. attachItemSelect(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the itemSelect event of this sap.m.TabContainer. bindItems(oBindingInfo)Binds aggregation items to model data. detachAddNewButtonPress(fnFunction, oListener)Detaches event handler fnFunction from the addNewButtonPress event of this sap.m.TabContainer. detachItemClose(fnFunction, oListener)Detaches event handler fnFunction from the itemClose event of this sap.m.TabContainer. detachItemSelect(fnFunction, oListener)Detaches event handler fnFunction from the itemSelect event of this sap.m.TabContainer. fireItemClose(mArguments?)Fires event itemClose to attached listeners. fireItemSelect(mArguments?)Fires event itemSelect to attached listeners. getItems()Gets content of aggregation items. getSelectedItem()ID of the element which is the current target of the association selectedItem, or null. indexOfItem(oItem)Checks for the provided sap.m.TabContainerItem in the aggregation items. removeItem(vItem)Removes an item from the aggregation named items. unbindItems()Unbinds aggregation items from model data. addStyleClass, 
allowTextSelection, 
attachBrowserEvent, 
attachValidateFieldGroup, 
checkFieldGroupIds, 
clone, 
detachBrowserEvent, 
detachValidateFieldGroup, 
fireValidateFieldGroup, 
getAccessibilityInfo, 
getBusy, 
getBusyIndicatorDelay, 
getControlsByFieldGroupId, 
getFieldGroupIds, 
getIdForLabel, 
getRenderer, 
getVisible, 
hasStyleClass, 
invalidate, 
isBusy, 
onAfterRendering, 
placeAt, 
removeStyleClass, 
rerender, 
setBusy, 
setBusyIndicatorDelay, 
setFieldGroupIds, 
setVisible, 
toggleStyleClass, 
triggerValidateFieldGroup $, 
addCustomData, 
addDependent, 
addEventDelegate, 
applyFocusInfo, 
bindElement, 
data, 
destroy, 
destroyCustomData, 
destroyDependents, 
destroyLayoutData, 
destroyTooltip, 
enhanceAccessibilityState, 
exit, 
findElements, 
fireEvent, 
focus, 
getCustomData, 
getDependents, 
getDomRef, 
getElementBinding, 
getFocusDomRef, 
getFocusInfo, 
getInterface, 
getLayoutData, 
getMetadata, 
getTooltip, 
getTooltip_AsString, 
getTooltip_Text, 
indexOfCustomData, 
indexOfDependent, 
init, 
insertCustomData, 
insertDependent, 
prop, 
removeAllCustomData, 
removeAllDependents, 
removeCustomData, 
removeDependent, 
removeEventDelegate, 
setLayoutData, 
setTooltip, 
toString, 
unbindElement addAssociation, 
applySettings, 
attachFormatError, 
attachModelContextChange, 
attachParseError, 
attachValidationError, 
attachValidationSuccess, 
bindAggregation, 
bindContext, 
bindObject, 
bindProperty, 
destroyAggregation, 
detachFormatError, 
detachModelContextChange, 
detachParseError, 
detachValidationError, 
detachValidationSuccess, 
findAggregatedObjects, 
fireFormatError, 
fireModelContextChange, 
fireParseError, 
fireValidationError, 
fireValidationSuccess, 
getAggregation, 
getAssociation, 
getBinding, 
getBindingContext, 
getBindingInfo, 
getBindingPath, 
getEventingParent, 
getId, 
getModel, 
getObjectBinding, 
getOriginInfo, 
getParent, 
getProperty, 
hasModel, 
indexOfAggregation, 
insertAggregation, 
isBound, 
isInvalidateSuppressed, 
isTreeBinding, 
propagateMessages, 
removeAggregation, 
removeAllAggregation, 
removeAllAssociation, 
removeAssociation, 
setAggregation, 
setAssociation, 
setBindingContext, 
setModel, 
setProperty, 
unbindAggregation, 
unbindContext, 
unbindObject, 
unbindProperty, 
validateAggregation, 
validateProperty  Constructor Detail 
 new sap.m.TabContainer(sId?, mSettings?) 
 Constructor for a new TabContainer. 
 Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object. 
 The supported settings are: 
- Properties 
- Aggregations - items : sap.m.TabContainerItem[]
 
- Events - itemClose : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- itemSelect : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- addNewButtonPress : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
 
 In addition, all settings applicable to the base type sap.ui.core.Control can be used as well. 
Parameters:
| {string} | sId? | ID for the new control, generated automatically if no ID is given | 
| {object} | mSettings? | Initial settings for the new control | 
   Event Detail 
 addNewButtonPress(oControlEvent)
 Fired when Add New Tab button is pressed. 
Parameters:
 itemClose(oControlEvent)
 Fired when an item is closed. 
Parameters:
 itemSelect(oControlEvent)
 Fired when an item is pressed. 
Parameters:
 Method Detail 
 sap.m.TabContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.m.TabContainer with name 
sClassName and enriches it with the information contained in 
oClassInfo. 
oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend. 
Parameters:
| {string} | sClassName | Name of the class being created | 
| {object} | oClassInfo? | Object literal with information about the class | 
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata | 
Returns:
| {function} | Created class / constructor function | 
 Returns a metadata object for class sap.m.TabContainer. 
Returns:
 _toTabStripItem(vItem): sap.m.TabStripItem|null
 Finds the sap.m.TabStripItem corresponding to a given sap.m.TabContainerItem. 
Parameters:
Returns:
| {sap.m.TabStripItem|null} | TabStripItemcorresponding to a givensap.m.TabContainerItem(if any) | 
 Attaches event handler 
fnFunction to the 
addNewButtonPress event of this 
sap.m.TabContainer. 
 When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.TabContainer itself. 
 Fired when Add New Tab button is pressed. 
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event | 
| {function} | fnFunction | The function to be called when the event occurs | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.TabContaineritself | 
Returns:
 Attaches event handler 
fnFunction to the 
itemClose event of this 
sap.m.TabContainer. 
 When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.TabContainer itself. 
 Fired when an item is closed. 
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event | 
| {function} | fnFunction | The function to be called when the event occurs | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.TabContaineritself | 
Returns:
 Attaches event handler 
fnFunction to the 
itemSelect event of this 
sap.m.TabContainer. 
 When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.TabContainer itself. 
 Fired when an item is pressed. 
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event | 
| {function} | fnFunction | The function to be called when the event occurs | 
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.TabContaineritself | 
Returns:
Parameters:
| {object} | oBindingInfo | The binding information | 
Returns:
 Detaches event handler 
fnFunction from the 
addNewButtonPress event of this 
sap.m.TabContainer. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs | 
| {object} | oListener | Context object on which the given function had to be called | 
Returns:
 Detaches event handler 
fnFunction from the 
itemClose event of this 
sap.m.TabContainer. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs | 
| {object} | oListener | Context object on which the given function had to be called | 
Returns:
 Detaches event handler 
fnFunction from the 
itemSelect event of this 
sap.m.TabContainer. 
 The passed function and listener object must match the ones used for event registration. 
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs | 
| {object} | oListener | Context object on which the given function had to be called | 
Returns:
 Fires event addNewButtonPress to attached listeners. 
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event | 
Returns:
 fireItemClose(mArguments?): boolean
 Fires event 
itemClose to attached listeners. 
 Listeners may prevent the default action of this event by using the preventDefault-method on the event object. 
 Expects the following event parameters: 
- itemof type- sap.m.TabContainerItemThe item to be closed.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event | 
Returns:
| {boolean} | Whether or not to prevent the default action | 
 fireItemSelect(mArguments?): boolean
 Fires event 
itemSelect to attached listeners. 
 Listeners may prevent the default action of this event by using the preventDefault-method on the event object. 
 Expects the following event parameters: 
- itemof type- sap.m.TabContainerItemThe selected item.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event | 
Returns:
| {boolean} | Whether or not to prevent the default action | 
 Gets content of aggregation 
items. 
 The items displayed in the TabContainer. 
Returns:
 ID of the element which is the current target of the association selectedItem, or null. 
Returns:
 getShowAddNewButton(): boolean
 Gets current value of property 
showAddNewButton. 
 Defines whether an Add New Tab button is displayed in the TabStrip. 
 Default value is false. 
Returns:
| {boolean} | Value of property showAddNewButton | 
 indexOfItem(oItem): int
 Checks for the provided sap.m.TabContainerItem in the aggregation items. and returns its index if found or -1 otherwise. 
Parameters:
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise | 
 Removes an item from the aggregation named items. 
Parameters:
Returns:
 Unbinds aggregation items from model data. 
Returns: