Wednesday, 30 December 2015

difference between shell and the page in sapui5 ?

Both page and shell used the content element and the Page is showing full width for the app default when we load from the index,if we use the shell  it is taking some default alignments from left and right ,if we use the page there is no default left and right margins for the pages.

for shell ...in the index page


           <script>
var shell = new sap.m.Shell({
title : "Routing Concept",
showLogout : true,
headerRightText : "Right Text",
app : new sap.ui.core.ComponentContainer({
name : "yourprojectName"
})
})
shell.placeAt("content");

</script>




for the Page...in the index page



            <script>
sap.ui.localResources("viewfoldername");
var app = new sap.m.App({initialPage:"idSampleApp1"});
var page = sap.ui.view({id:"idSampleApp1",                viewName:"themainviewtonavigate", type:sap.ui.core.mvc.ViewType.XML});
app.addPage(page);
app.placeAt("content");
    </script>




3 comments:

  1. Are you looking for live interactive SAPUI5 Online Training institute ?

    ReplyDelete
  2. Hard Rock Hotel Casino and Spa - MapYRO
    Find Harrah's Lake Tahoe Casino and Hotel Hotels, 영주 출장샵 Nevada, United States, 85223 reviews 정읍 출장안마 of Harrah's Lake Tahoe 세종특별자치 출장샵 Casino and Spa "Best" hotels 의왕 출장마사지 in 영천 출장마사지

    ReplyDelete