Used for closing dialogs and showing transitions in NavContainers
when targets are displayed.
Note: You should not create an own instance of this class. It is created when using sap.f.routing.Router
or sap.f.routing.Targets
.
Note: You may use the #setCloseDialogs
function to specify if dialogs should be closed on displaying other views. The dialogs are closed when a different target is displayed than the previously displayed one, otherwise the dialogs are kept open.
Constructor for a new TargetHandler
.
new sap.f.routing.TargetHandler(closeDialogs)
Param | Type | Default Value | Description |
---|---|---|---|
closeDialogs | boolean | Closes all open dialogs before navigating to a different target, if set to |
Method | Description |
---|---|
sap.f.routing.TargetHandler.extend |
Creates a new subclass of class sap.f.routing.TargetHandler with name
|
getCloseDialogs |
Gets if a navigation should close dialogs. |
sap.f.routing.TargetHandler.getMetadata |
Returns a metadata object for class sap.f.routing.TargetHandler. |
setCloseDialogs |
Sets if a navigation should close dialogs. Note: The dialogs are closed when a different target is displayed than the previous one, otherwise the dialogs are kept open even when |
showPlaceholder |
Calls the 'showPlaceholder' method of the respective target container control depending on whether a placeholder is needed or not. |
Creates a new subclass of class sap.f.routing.TargetHandler 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.base.Object.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.f.routing.TargetHandler.
Sets if a navigation should close dialogs.
Note: The dialogs are closed when a different target is displayed than the previous one, otherwise the dialogs are kept open even when bCloseDialogs
is true
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bCloseDialogs | boolean |
Close dialogs if |
Calls the 'showPlaceholder' method of the respective target container control depending on whether a placeholder is needed or not.
Param | Type | DefaultValue | Description |
---|---|---|---|
mSettings | object |
Object containing the container control and the view object to display |
|
container | sap.ui.core.Control |
The navigation target container |
|
object | sap.ui.core.Control Promise |
The component/view object |