Class sap.m.routing.TargetHandlerModule: sap/m/routing/TargetHandler
Since: 1.28.1.
Constructor Summary
new sap.m.routing.TargetHandler(closeDialogs)Instantiates a TargetHandler, a class used for closing dialogs and showing transitions in NavContainers when targets are displayed.
Method Summary
sap.m.routing.TargetHandler.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.routing.TargetHandler with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.m.routing.TargetHandler.getMetadata()Returns a metadata object for class sap.m.routing.TargetHandler.
Constructor Detail
new sap.m.routing.TargetHandler(closeDialogs)
Instantiates a TargetHandler, a class used for closing dialogs and showing transitions in NavContainers when targets are displayed.
You should not create an own instance of this class. It will be created when using sap.m.routing.Router or sap.m.routing.Targets. You may use the setCloseDialogs function to specify if dialogs should be closed on displaying other views.
You should not create an own instance of this class. It will be created when using sap.m.routing.Router or sap.m.routing.Targets. You may use the setCloseDialogs function to specify if dialogs should be closed on displaying other views.
Parameters:
{boolean} | closeDialogs | the default is true - will close all open dialogs before navigating, if set to true. If set to false it will just navigate without closing dialogs. |
Method Detail
sap.m.routing.TargetHandler.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.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 Object.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 |
sap.m.routing.TargetHandler.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.routing.TargetHandler.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
getCloseDialogs(): boolean
Gets if a navigation should close dialogs
Returns:
{boolean} | a flag indication if dialogs will be closed |
setCloseDialogs(bCloseDialogs): sap.m.routing.TargetHandler
Sets if a navigation should close dialogs
Parameters:
{boolean} | bCloseDialogs | close dialogs if true |
Returns:
{sap.m.routing.TargetHandler} | for chaining |