UNPKG

@openui5/sap.m

Version:

OpenUI5 UI Library sap.m

48 lines (42 loc) 1.24 kB
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function() { "use strict"; /** * Provide methods for sap.m.routing.Target in async mode * @private * @experimental * @since 1.33 */ return { /** * @private */ _place : function (vData) { var oPromise = this._super._place.apply(this, arguments), that = this; // chain to navigation promise to keep the order of navigations! return this._oTargetHandler._chainNavigation(function() { return oPromise.then(function(oViewInfo) { that._oTargetHandler.addNavigation({ navigationIdentifier : that._oOptions._name, transition: that._oOptions.transition, transitionParameters: that._oOptions.transitionParameters, eventData: vData, targetControl: oViewInfo.control, view: oViewInfo.view, preservePageInSplitContainer: that._oOptions.preservePageInSplitContainer }); // do not forward the route config to navigation if (vData) { delete vData.routeConfig; } return oViewInfo; }); }); } }; }, /* bExport= */ true);