Openui5 split app master hide mode

HTML Script Code

_____________________

<!DOCTYPE html>
<html>
<head>
<script src=”https://openui5.hana.ondemand.com/resources/sap-ui-core.js” id=”sap-ui-bootstrap” data-sap-ui-theme=”sap_bluecrystal” data-sap-ui-libs=”sap.m”></script>
<meta charset=”utf-8″>
<title>JS Bin</title>
</head>
<body id=”content” class=”sapUiBody”>
</body>
</html>

________________________

Java Script Code

________________________

 

sap.ui.getCore().attachInit(function() {

var oTglButton = new sap.m.Button({
icon: “sap-icon://menu”,
press: function() {
if(oApp.getMode() === “ShowHideMode”) {
oApp.setMode(“HideMode”);
oDetPage.setTitle(“Mode: Hide”);
}
else {
oApp.setMode(“ShowHideMode”);
oDetPage.setTitle(“Mode: ShowHide”);
}
}
});

var oDetPage = new sap.m.Page({
title: “Mode: ShowHide”,
headerContent: [ oTglButton ]
});

var oApp = new sap.m.SplitApp({
mode: “ShowHideMode”,
id : “spltapp”,
masterPages: [
new sap.m.Page({
title: “Master Page”,
headerContent: [ oTglButton.clone() ],
content: [

]
})
],
detailPages: [ oDetPage ]
}).placeAt(“content”);

// açılışta split app hide etmek
var sp = sap.ui.getCore().byId(“spltapp”);
sp.setMode(sap.m.SplitAppMode.HideMode);

});

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)