{"id":6111,"date":"2017-02-15T13:28:29","date_gmt":"2017-02-15T10:28:29","guid":{"rendered":"https:\/\/www.karadere.com\/blog\/?p=6111"},"modified":"2017-02-15T13:28:29","modified_gmt":"2017-02-15T10:28:29","slug":"openui5-split-app-master-hide-mode","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/openui5-split-app-master-hide-mode.html","title":{"rendered":"Openui5 split app master hide mode"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"http:\/\/openui5.org\/resources\/OpenUI5_text_right.png\" width=\"693\" height=\"180\" \/><\/p>\n<p>HTML Script Code<\/p>\n<p>_____________________<\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;script src=&#8221;https:\/\/openui5.hana.ondemand.com\/resources\/sap-ui-core.js&#8221; id=&#8221;sap-ui-bootstrap&#8221; data-sap-ui-theme=&#8221;sap_bluecrystal&#8221; data-sap-ui-libs=&#8221;sap.m&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243;&gt;<br \/>\n&lt;title&gt;JS Bin&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body id=&#8221;content&#8221; class=&#8221;sapUiBody&#8221;&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>________________________<\/p>\n<p>Java Script Code<\/p>\n<p>________________________<\/p>\n<p>&nbsp;<\/p>\n<p>sap.ui.getCore().attachInit(function() {<\/p>\n<p>var oTglButton = new sap.m.Button({<br \/>\nicon: &#8220;sap-icon:\/\/menu&#8221;,<br \/>\npress: function() {<br \/>\nif(oApp.getMode() === &#8220;ShowHideMode&#8221;) {<br \/>\noApp.setMode(&#8220;HideMode&#8221;);<br \/>\noDetPage.setTitle(&#8220;Mode: Hide&#8221;);<br \/>\n}<br \/>\nelse {<br \/>\noApp.setMode(&#8220;ShowHideMode&#8221;);<br \/>\noDetPage.setTitle(&#8220;Mode: ShowHide&#8221;);<br \/>\n}<br \/>\n}<br \/>\n});<\/p>\n<p>var oDetPage = new sap.m.Page({<br \/>\ntitle: &#8220;Mode: ShowHide&#8221;,<br \/>\nheaderContent: [ oTglButton ]<br \/>\n});<\/p>\n<p>var oApp = new sap.m.SplitApp({<br \/>\nmode: &#8220;ShowHideMode&#8221;,<br \/>\nid : &#8220;spltapp&#8221;,<br \/>\nmasterPages: [<br \/>\nnew sap.m.Page({<br \/>\ntitle: &#8220;Master Page&#8221;,<br \/>\nheaderContent: [ oTglButton.clone() ],<br \/>\ncontent: [<\/p>\n<p>]<br \/>\n})<br \/>\n],<br \/>\ndetailPages: [ oDetPage ]<br \/>\n}).placeAt(&#8220;content&#8221;);<\/p>\n<p>\/\/ a\u00e7\u0131l\u0131\u015fta split app hide etmek<br \/>\nvar sp = sap.ui.getCore().byId(&#8220;spltapp&#8221;);<br \/>\nsp.setMode(sap.m.SplitAppMode.HideMode);<\/p>\n<p>});<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2016\/11\/splitscreen.gif\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML Script Code _____________________ &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script src=&#8221;https:\/\/openui5.hana.ondemand.com\/resources\/sap-ui-core.js&#8221; id=&#8221;sap-ui-bootstrap&#8221; data-sap-ui-theme=&#8221;sap_bluecrystal&#8221; data-sap-ui-libs=&#8221;sap.m&#8221;&gt;&lt;\/script&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;title&gt;JS Bin&lt;\/title&gt; &lt;\/head&gt; &lt;body id=&#8221;content&#8221; class=&#8221;sapUiBody&#8221;&gt; &lt;\/body&gt; &lt;\/html&gt; ________________________ Java Script Code ________________________ &nbsp; sap.ui.getCore().attachInit(function() { var oTglButton = new sap.m.Button({ icon: &#8220;sap-icon:\/\/menu&#8221;, press: function() { if(oApp.getMode() === &#8220;ShowHideMode&#8221;) { oApp.setMode(&#8220;HideMode&#8221;); oDetPage.setTitle(&#8220;Mode: Hide&#8221;); } else { oApp.setMode(&#8220;ShowHideMode&#8221;); oDetPage.setTitle(&#8220;Mode: ShowHide&#8221;); } [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2806,2808,2809],"tags":[489,1040,1113,1496,2814,2479,2813,2812],"class_list":["post-6111","post","type-post","status-publish","format-standard","hentry","category-openui5","category-sap-openui5","category-sapui5","tag-app","tag-gizlemek","tag-hide","tag-mode","tag-modehide","tag-openui5","tag-show","tag-split","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":1115,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=6111"}],"version-history":[{"count":1,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6111\/revisions"}],"predecessor-version":[{"id":6112,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6111\/revisions\/6112"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=6111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=6111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=6111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}