@openui5/sap.ui.demokit
Version:
OpenUI5 UI Library sap.ui.demokit
30 lines (23 loc) • 705 B
JavaScript
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/core/mvc/JSView", "sap/m/SplitApp"], function (JSView, SplitApp) {
"use strict";
sap.ui.jsview("sap.ui.demokit.explored.view.app", {
getControllerName : function () {
return "sap.ui.demokit.explored.view.app";
},
createContent : function (oController) {
// to avoid scrollbars on desktop the root view must be set to block display
this.setDisplayBlock(true);
// create split app
return new SplitApp("splitApp", {
afterDetailNavigate: function () {
this.hideMaster();
}
});
}
});
});