Class sap.suite.ui.commons.HeaderContainerModule: sap/suite/ui/commons/HeaderContainer
The container that provides a horizontal layout. It provides a horizontal scroll on the tablet and phone. On the desktop, it provides scroll left and scroll right buttons. This control supports keyboard navigation. You can use left and right arrow keys to navigate through the inner content. The Home key puts focus on the first control and the End key puts focus on the last control. Use Enter or Space to choose the control.
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.core.Control
in the aggregation named items
and returns its index if found or -1 otherwise. Accepts an object literal mSettings
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
- scrollStep : int (default: 300)
- scrollTime : int (default: 500)
- showDividers : boolean (default: true)
- view : sap.suite.ui.commons.HeaderContainerView (default: sap.suite.ui.commons.HeaderContainerView.Horizontal)
- backgroundDesign : sap.m.BackgroundDesign (default: sap.m.BackgroundDesign.Transparent)
- Aggregations
- items : sap.ui.core.Control[]
- Associations
- Events
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
oItem
to the aggregation named items
. {sap.ui.core.Control} | oItem | the item to add; if empty, nothing is inserted |
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
items
. {sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
backgroundDesign
. Specifies the background color of the content. The visualization of the different options depends on the used theme. Default value is Transparent
- Since:
- 1.38
{sap.m.BackgroundDesign} | the value of property backgroundDesign |
items
.Items to add to HeaderContainer.
{sap.ui.core.Control[]} |
scrollStep
. Number of pixels to scroll when the user chooses Next or Previous buttons. Relevant only for desktop. Default value is 300
{int} | the value of property scrollStep |
scrollTime
. Scroll animation time in milliseconds. Default value is 500
{int} | the value of property scrollTime |
showDividers
. If set to true, shows dividers between scrollable items. Default value is true
- Since:
- 1.25
{boolean} | the value of property showDividers |
view
. The view of the HeaderContainer. Default value is Horizontal
- Since:
- 1.25
{sap.suite.ui.commons.HeaderContainerView} | the value of property view |
sap.ui.core.Control
in the aggregation named items
and returns its index if found or -1 otherwise. {sap.ui.core.Control} | oItem | the item whose index is looked for. |
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
items
. {sap.ui.core.Control} | 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 |
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
items
.Additionally unregisters them from the hosting UIArea.
{sap.ui.core.Control[]} | an array of the removed elements (might be empty) |
items
. {int|string|sap.ui.core.Control} | vItem | the item to remove or its index or id |
{sap.ui.core.Control} | the removed item or null |
backgroundDesign
. Default value is Transparent
{sap.m.BackgroundDesign} | oBackgroundDesign | new value for property backgroundDesign |
- Since:
- 1.38
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
scrollStep
. Default value is 300
{int} | iScrollStep | new value for property scrollStep |
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
scrollTime
. Default value is 500
{int} | iScrollTime | new value for property scrollTime |
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
showDividers
. Default value is true
{boolean} | bShowDividers | new value for property showDividers |
- Since:
- 1.25
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |
view
. Default value is Horizontal
{sap.suite.ui.commons.HeaderContainerView} | oView | new value for property view |
- Since:
- 1.25
{sap.suite.ui.commons.HeaderContainer} | this to allow method chaining |