Class sap.ui.unified.ShellHeadItemModule: sap/ui/unified/ShellHeadItem
Header Action item of the Shell.
Since: 1.15.1.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the press
event of this sap.ui.unified.ShellHeadItem
.fnFunction
from the press
event of this sap.ui.unified.ShellHeadItem
.ariaLabelledBy
.ariaLabelledBy
. 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
- startsSection : boolean (default: false)
- showSeparator : boolean (default: true)
- selected : boolean (default: false)
- toggleEnabled : boolean (default: true)
- showMarker : boolean (default: false)
- icon : sap.ui.core.URI
- visible : boolean (default: true)
- Events
- press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
ariaLabelledBy
. {string|sap.ui.core.Control} | vAriaLabelledBy | the ariaLabelledBy to add; if empty, nothing is inserted |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
fnFunction
to the press
event of this sap.ui.unified.ShellHeadItem
. 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.ui.unified.ShellHeadItem
itself.
Event is fired when the user presses the item.
{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.ui.unified.ShellHeadItem itself |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
fnFunction
from the press
event of this sap.ui.unified.ShellHeadItem
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
press
to attached listeners. {Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
ariaLabelledBy
. {sap.ui.core.Control[]} |
icon
. The icon of the item, either defined in the sap.ui.core.IconPool or an URI to a custom image. An icon must be set.
{sap.ui.core.URI} | Value of property icon |
selected
. Defines the toggle state in case the item represents a toggle button (see also property toggleEnabled
).
Default value is false
.
{boolean} | Value of property selected |
showSeparator
. If set to true, a separator is displayed after the item.
Default value is true
.
- Since:
- 1.22.5
{boolean} | Value of property showSeparator |
toggleEnabled
. If set to true, the item represents a toggle button. The selected
property can the be used to define the toggle state. Otherwise the item is displayed as action button. In this case the selected
property is ignored.
Default value is true
.
- Since:
- 1.34.3
{boolean} | Value of property toggleEnabled |
visible
. Invisible items are not shown on the UI.
Default value is true
.
- Since:
- 1.18
{boolean} | Value of property visible |
ariaLabelledBy
. {sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
ariaLabelledBy
. {int|string|sap.ui.core.Control} | vAriaLabelledBy | The ariaLabelledByto be removed or its index or ID |
{sap.ui.core.Control} | the removed ariaLabelledBy or null |
icon
. The icon of the item, either defined in the sap.ui.core.IconPool or an URI to a custom image. An icon must be set.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sIcon | New value for property icon |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
selected
. Defines the toggle state in case the item represents a toggle button (see also property toggleEnabled
).
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bSelected | New value for property selected |
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
showSeparator
. If set to true, a separator is displayed after the item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowSeparator | New value for property showSeparator |
- Since:
- 1.22.5
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
toggleEnabled
. If set to true, the item represents a toggle button. The selected
property can the be used to define the toggle state. Otherwise the item is displayed as action button. In this case the selected
property is ignored.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bToggleEnabled | New value for property toggleEnabled |
- Since:
- 1.34.3
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
visible
. Invisible items are not shown on the UI.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bVisible | New value for property visible |
- Since:
- 1.18
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
showMarker
. If set to true, a theme dependent marker is shown on the item.
Default value is false
.
- Deprecated:
- Since version 1.18. Markers should not be used anymore.
{boolean} | Value of property showMarker |
startsSection
. If set to true, a divider is displayed before the item.
Default value is false
.
- Deprecated:
- Since version 1.18. Dividers are not supported anymore.
{boolean} | Value of property startsSection |
showMarker
. If set to true, a theme dependent marker is shown on the item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bShowMarker | New value for property showMarker |
- Deprecated:
- Since version 1.18. Markers should not be used anymore.
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |
startsSection
. If set to true, a divider is displayed before the item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bStartsSection | New value for property startsSection |
- Deprecated:
- Since version 1.18. Dividers are not supported anymore.
{sap.ui.unified.ShellHeadItem} | Reference to this in order to allow method chaining |