sap.m.IconTabBar.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.IconTabBar 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.IconTabBar.
Returns:
Adds some content to the aggregation content
.
Parameters:
Returns:
Adds some item to the aggregation items
.
Parameters:
{sap.m.IconTab} | oItem | the item to add; if empty, nothing is inserted |
Returns:
Attaches event handler
fnFunction
to the
expand
event of this
sap.m.IconTabBar
.
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.IconTabBar
itself.
Indicates that the tab will expand or collapse.
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.IconTabBar itself |
- Since:
- 1.15.0
Returns:
Attaches event handler
fnFunction
to the
select
event of this
sap.m.IconTabBar
.
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.IconTabBar
itself.
Fires when an item is selected.
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.IconTabBar itself |
Returns:
Forwards aggregations with the name of items to the internal list.
Parameters:
{string} | sAggregationName | The name for the binding |
{object} | oBindingInfo | The configuration parameters for the binding |
Returns:
Destroys all the content in the aggregation content
.
Returns:
Destroys all the items in the aggregation items
.
Returns:
Detaches event handler
fnFunction
from the
expand
event of this
sap.m.IconTabBar
.
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 |
- Since:
- 1.15.0
Returns:
Detaches event handler
fnFunction
from the
select
event of this
sap.m.IconTabBar
.
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
expand
to attached listeners.
Expects the following event parameters:
expand
of type boolean
If the tab will expand, this is true.collapse
of type boolean
If the tab will collapse, this is true.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.15.0
Returns:
Fires event
select
to attached listeners.
Expects the following event parameters:
item
of type sap.m.IconTabFilter
The selected itemkey
of type string
The key of the selected itemselectedItem
of type sap.m.IconTabFilter
The selected itemselectedKey
of type string
The key of the selected item
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getApplyContentPadding(): boolean
Gets current value of property
applyContentPadding
.
Determines whether the IconTabBar content fits to the full area. The paddings are removed if it's set to false.
Default value is true
.
- Since:
- 1.26
Returns:
{boolean} | Value of property applyContentPadding |
Gets current value of property
backgroundDesign
.
Specifies the background color of the IconTabBar.
Depending on the theme, you can change the state of the background color to "Solid", "Translucent", or "Transparent".
Default value is Solid
.
- Since:
- 1.26
Returns:
Gets content of aggregation
content
.
Represents the contents displayed below the IconTabBar. If there are multiple contents, they are rendered after each other. The developer has to manage to display the right one or use the content aggregation inside the IconTabFilter (which will be displayed instead if it is set).
Returns:
getExpandable(): boolean
Gets current value of property
expandable
.
Defines if the tabs are collapsible and expandable.
Default value is true
.
- Since:
- 1.15.0
Returns:
{boolean} | Value of property expandable |
getExpanded(): boolean
Gets current value of property
expanded
.
Indicates if the actual tab content is expanded or not.
Default value is true
.
- Since:
- 1.15.0
Returns:
{boolean} | Value of property expanded |
Gets content of aggregation
items
.
The items displayed in the IconTabBar.
Returns:
getSelectedKey(): string
Reflector for the internal header's selectedKey property.
Returns:
{string} | The current property value |
getStretchContentHeight(): boolean
Gets current value of property
stretchContentHeight
.
Determines whether the IconTabBar height is stretched to the maximum possible height of its parent container. As a prerequisite, the height of the parent container must be defined as a fixed value.
Default value is false
.
- Since:
- 1.26
Returns:
{boolean} | Value of property stretchContentHeight |
getUpperCase(): boolean
Gets current value of property
upperCase
.
Determines whether the text of the icon tab filter (not the count) is displayed in uppercase.
Default value is false
.
- Since:
- 1.22
Returns:
{boolean} | Value of property upperCase |
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Control
in the aggregation content
. 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 |
indexOfItem(oItem): int
Checks for the provided sap.m.IconTab
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 |
Inserts a content into the aggregation content
.
Parameters:
{sap.ui.core.Control} | oContent | the content to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the content should be inserted at; for a negative value of iIndex , the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position |
Returns:
Inserts a item into the aggregation items
.
Parameters:
{sap.m.IconTab} | oItem | the item to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the item should be inserted at; for a negative value of iIndex , the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
Returns:
Removes all the controls from the aggregation
content
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
items
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
{sap.m.IconTab[]} | An array of the removed elements (might be empty) |
Removes a content from the aggregation content
.
Parameters:
Returns:
Removes a item from the aggregation items
.
Parameters:
{int|string|sap.m.IconTab} | vItem | The itemto remove or its index or id |
Returns:
Sets a new value for property
applyContentPadding
.
Determines whether the IconTabBar content fits to the full area. The paddings are removed if it's set to false.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bApplyContentPadding | New value for property applyContentPadding |
- Since:
- 1.26
Returns:
Sets a new value for property
backgroundDesign
.
Specifies the background color of the IconTabBar.
Depending on the theme, you can change the state of the background color to "Solid", "Translucent", or "Transparent".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Solid
.
Parameters:
- Since:
- 1.26
Returns:
Sets the tabs as collapsible and expandable without re-rendering the control.
Parameters:
{boolean} | bExpandable | new parameter value |
Returns:
Sets the tab content as expanded.
Parameters:
{boolean} | bExpanded | new parameter value |
Returns:
Reflector for the internal header's selectedKey property.
Parameters:
{string} | sValue | the new value |
Returns:
Sets a new value for property
stretchContentHeight
.
Determines whether the IconTabBar height is stretched to the maximum possible height of its parent container. As a prerequisite, the height of the parent container must be defined as a fixed value.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bStretchContentHeight | New value for property stretchContentHeight |
- Since:
- 1.26
Returns:
Sets a new value for property
upperCase
.
Determines whether the text of the icon tab filter (not the count) is displayed in uppercase.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bUpperCase | New value for property upperCase |
- Since:
- 1.22
Returns:
getShowSelection(): boolean
Gets current value of property
showSelection
.
Defines whether the current selection should be visualized.
Default value is true
.
- Deprecated:
- As of 1.15.0. Regarding to changes of this control this property is not needed anymore.
Returns:
{boolean} | Value of property showSelection |
Sets a new value for property
showSelection
.
Defines whether the current selection should be visualized.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowSelection | New value for property showSelection |
- Deprecated:
- As of 1.15.0. Regarding to changes of this control this property is not needed anymore.
Returns: