cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.CustomTile

Former Member
0 Kudos

The CustomTile component is not getting rendered on the screen.

Can anyone help me ?

Error in Chrome console : Uncaught TypeError: Cannot call method 'render' of undefined

var dashBoardDetails = new sap.m.Page("dashBoardDetails",{

    title : "Dashboard",

    enableScrolling: false,

    showNavButton : true,

    navButtonPress : function() {

    oSplitApp.backMaster();

           },

    content : [

                            new sap.m.TileContainer("tilecontainer", {tiles:[new sap.m.CustomTile({content :[new sap.m.StandardTile("tile" ,{                    

                       info : 1,

                       infoUnit : "EUR",

                       title : "Coming from a View" ,

                       description : "1 day ago",

                   })  ]})

               ]})

    ]});

Accepted Solutions (1)

Accepted Solutions (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

I recreated demo example. you can see the code at http://jsbin.com/OjobebI/4/edit

Regards,

Chandra

Former Member
0 Kudos

hi thanks for your help.

Is it possible to change the width of the tile ?

Answers (2)

Answers (2)

Former Member
0 Kudos

This code works:

var dashBoardDetails = new sap.m.Page("dashBoardDetails",{

     title : "Dashboard",

     enableScrolling: false,

     showNavButton : true,

     navButtonPress : function() {

     oSplitApp.backMaster();

            },

     content : [

                        new sap.m.TileContainer("tilecontainer", {

                        tiles: [

                                new sap.m.CustomTile({

                                     title:"T1",

                                     content:  new sap.m.StandardTile("tile" ,{                 

                                       info : 1,

                                       infoUnit : "EUR",

                                       title : "Coming from a View" ,

                                       description : "1 day ago",

                                         })

                             

                                })

                          

                        ]

                        })

     ]});

I removed the square brackets after the 'content' part of the CustomTile.

If you want to add more elements to sap.m.CustomTile you will need to do something like this:

var tileLayout = new sap.ui.commons.layout.VerticalLayout("Layout", {

  content:[ ADD ALL ELEMENTS HERE]

  })

new sap.m.CustomTile({

          content: tileLayout

})

former_member189929
Participant
0 Kudos

Hi Madhumitha,

I think you using Custom Tile in that you are using Standard Tile.

You can directly use Standard Tile as follows it may work.....

new sap.m.TileContainer("tilecontainer", {tiles:[new sap.m.CustomTile({content :[new sap.m.StandardTile("tile" ,{     


new sap.m.TileContainer("tilecontainer", {tiles:[new sap.m.StandardTile("tile" ,{      


Thanks

Ravi Varma