sap.ui.comp.navpopover.NavigationPopover.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.navpopover.NavigationPopover with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.m.Popover.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.ui.comp.navpopover.NavigationPopover.
Returns:
Adds some availableAction to the aggregation availableActions.
Parameters:
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction to the
navigate event of this
sap.ui.comp.navpopover.NavigationPopover.
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.comp.navpopover.NavigationPopover itself.
Event is triggered when a link 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.ui.comp.navpopover.NavigationPopover itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction to the
targetsObtained event of this
sap.ui.comp.navpopover.NavigationPopover.
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.comp.navpopover.NavigationPopover itself.
The navigation targets that are shown.
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.ui.comp.navpopover.NavigationPopover itself |
- Since:
- 1.28.0
Returns:
Destroys all the availableActions in the aggregation availableActions.
- Since:
- 1.28.0
Returns:
Destroys the mainNavigation in the aggregation mainNavigation.
- Since:
- 1.28.0
Returns:
Destroys the ownNavigation in the aggregation ownNavigation.
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction from the
navigate event of this
sap.ui.comp.navpopover.NavigationPopover.
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.28.0
Returns:
Detaches event handler
fnFunction from the
targetsObtained event of this
sap.ui.comp.navpopover.NavigationPopover.
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.28.0
Returns:
Fires event navigate to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event targetsObtained to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
getAppStateKey(): string
Gets current value of property
appStateKey.
The application state key passed to retrieve the navigation targets.
- Since:
- 1.28.0
Returns:
| {string} | Value of property appStateKey |
Gets content of aggregation
availableActions.
A list of available actions shown to the user.
- Since:
- 1.28.0
Returns:
ID of the element which is the current target of the association component, or null.
Returns:
ID of the element which is the current target of the association extraContent, or null.
- Since:
- 1.28.0
Returns:
Gets content of aggregation
mainNavigation.
The main navigation displayed first on the popover.
- Since:
- 1.28.0
Returns:
getMainNavigationId(): string
Gets current value of property
mainNavigationId.
Sets the visible text for the main navigation. If empty, the navigationPopover will try to get the Id from the given sourceObject.
Returns:
| {string} | Value of property mainNavigationId |
Gets content of aggregation
ownNavigation.
The navigation taking the user back to the source application.
- Since:
- 1.28.0
Returns:
getSemanticAttributes(): object
Gets current value of property
semanticAttributes.
describes the semantic attributes. The attribute has to be a map
- Since:
- 1.28.0
Returns:
| {object} | Value of property semanticAttributes |
getSemanticObjectName(): string
Gets current value of property
semanticObjectName.
the name of the semantic object
- Since:
- 1.28.0
Returns:
| {string} | Value of property semanticObjectName |
ID of the element which is the current target of the association source, or null.
- Since:
- 1.28.0
Returns:
getTitle(): string
Gets current value of property
title.
popover title
- Since:
- 1.28.0
Returns:
| {string} | Value of property title |
indexOfAvailableAction(oAvailableAction): int
Checks for the provided sap.ui.comp.navpopover.LinkData in the aggregation availableActions. and returns its index if found or -1 otherwise.
Parameters:
- Since:
- 1.28.0
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a availableAction into the aggregation availableActions.
Parameters:
| {sap.ui.comp.navpopover.LinkData} | oAvailableAction | the availableAction to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the availableAction should be inserted at; for a negative value of iIndex, the availableAction is inserted at position 0; for a value greater than the current size of the aggregation, the availableAction is inserted at the last position |
- Since:
- 1.28.0
Returns:
Removes all the controls from the aggregation
availableActions.
Additionally, it unregisters them from the hosting UIArea.
- Since:
- 1.28.0
Returns:
Removes a availableAction from the aggregation availableActions.
Parameters:
- Since:
- 1.28.0
Returns:
retrieveNavTargets(sSemanticObject)
determines the potential navigation targets for the semantical object and visualize the popover
Parameters:
| {string} | sSemanticObject | name of the semantical object |
Sets a new value for property
appStateKey.
The application state key passed to retrieve the navigation targets.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sAppStateKey | New value for property appStateKey |
- Since:
- 1.28.0
Returns:
Sets the associated component.
Parameters:
| {sap.ui.core.Element} | oComponent | Id of an element which becomes the new target of this component association; alternatively, an element instance may be given |
Returns:
Sets the associated extraContent.
Parameters:
| {sap.ui.core.Control} | oExtraContent | Id of an element which becomes the new target of this extraContent association; alternatively, an element instance may be given |
- Since:
- 1.28.0
Returns:
Sets the aggregated mainNavigation.
Parameters:
- Since:
- 1.28.0
Returns:
Sets a new value for property
mainNavigationId.
Sets the visible text for the main navigation. If empty, the navigationPopover will try to get the Id from the given sourceObject.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sMainNavigationId | New value for property mainNavigationId |
Returns:
Sets the aggregated ownNavigation.
Parameters:
- Since:
- 1.28.0
Returns:
Sets a new value for property
semanticAttributes.
describes the semantic attributes. The attribute has to be a map
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {object} | oSemanticAttributes | New value for property semanticAttributes |
- Since:
- 1.28.0
Returns:
Sets a new value for property
semanticObjectName.
the name of the semantic object
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sSemanticObjectName | New value for property semanticObjectName |
- Since:
- 1.28.0
Returns:
Sets the associated source.
Parameters:
| {sap.ui.core.Control} | oSource | Id of an element which becomes the new target of this source association; alternatively, an element instance may be given |
- Since:
- 1.28.0
Returns:
Sets a new value for property
title.
popover title
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sTitle | New value for property title |
- Since:
- 1.28.0
Returns:
show()
displays the popover. This method should be called, once all navigation targets are adapted by the application