Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Object Page layout

$
0
0

sap.ui.jsview("lazyloading.Main", {

 

 

  /** Specifies the Controller belonging to this View.

  * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.

  * @memberOf lazyloading.Main

  */

  getControllerName : function() {

  return "lazyloading.Main";

  },

 

 

  /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.

  * Since the Controller is given to this method, its event handlers can be attached right away.

  * @memberOf lazyloading.Main

  */

  createContent : function(oController) {

  var json = new sap.ui.model.json.JSONModel({

  data : [{name : "Shekar",qual : "Btech"},

             {name : "Raju",qual : "Btech"},

             {name : "Raghu",qual : "MBA"},

             {name : "Ravi",qual : "Btech"},

             {name : "Ramu",qual : "MCA"}

             ]});

  // To get the Page Header

  var SectionHeader = new sap.uxap.ObjectPageHeader(

  {objectTitle    : "SectionHeader",

  // objectSubtitle : "Hello",

  // showTitleSelector : true,

  showMarkers : false,

 

  });

  //debugger;

 

  // var SubSection = new sap.uxap.ObjectPageSubSection("section1",{title : "Hello",mode : "Collapsed"});

  // var SubSection2 = new sap.uxap.ObjectPageSubSection("section2",{title : "Hello",mode : "Collapsed"});

 

  //var block = new sap.uxap.BlockBase({showSubSectionMore : true,mode : "default"});

  // var map = new sap.uxap.ModelMapping();

 

 

 

  var Section1 = new sap.uxap.ObjectPageSection("secid1",{title : "Section1",customAnchorBarButton : new sap.m.Button({text : "Section"})});

  // var Section2 = new sap.uxap.ObjectPageSection("secid2",{title : "Section2"});

 

 

  /*var Section3 = new sap.uxap.ObjectPageSection({title : "Section3"});

  var Section4 = new sap.uxap.ObjectPageSection({title : "Section4"});

  var Section5 = new sap.uxap.ObjectPageSection({title : "Section5"});

  var Section6 = new sap.uxap.ObjectPageSection({title : "Section6"});

  */

 

 

 

 

 

  var Layout = new sap.uxap.ObjectPageLayout(

  {

  showAnchorBar : true,

  //height    : "200%",

  enableLazyLoading : true,

  showHeaderContent : true,

  showOnlyHighImportance  : true,

  isChildPage : true,

  alwaysShowContentHeader : true,

  showEditHeaderButton : true,

  useIconTabBar : true,

  flexEnabled    : true,

     sections : [Section1],

 

  headerTitle : [SectionHeader],

  //headerContent    : [Section1,Section2]

 

  });

 

 

  return new sap.m.Page({

  title: "Title",

  content: [

           Layout,

           //Section1

          // block

          

          

 

  ]

  });

  }

 

 

});


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>