avatar image
Former Member

SAPUI5 Tile Dashboard

Hello Every One

I try to create SAPUI5 Tile Dashboard using

sap.m.TileContainer and tile like

sap.m.StandardTile here my code

var oTileFactory = function (sId, oContext) {
var oTile = new sap.m.StandardTile(sId)
.bindProperty("title", oContext.sPath + "/description")
.bindProperty("type", oContext.sPath + "/type")
.bindProperty("info", oContext.sPath + "/info")
.bindProperty("infoState", oContext.sPath + "/infoState")
.bindProperty("number", oContext.sPath + "/number")
.bindProperty("numberUnit", oContext.sPath + "/numberUnit")
.addCustomData(new sap.ui.core.CustomData({
key: "url",
value: oContext.oModel.getProperty(oContext.sPath + "/url"),
writeToDom: true})).attachPress(oController.handlePress);

var iconSrc = oContext.oModel.getProperty(oContext.sPath + "/vFioriIcon");
if (iconSrc) {
oTile.setIcon(sap.ui.core.IconPool.getIconURI(iconSrc));
}
return oTile;
};
var oTileContainer = new sap.m.TileContainer({
width: "100%",
height: "40%",
editable: false,
visible: true
// editable :true,
});

oTileContainer.bindAggregation("tiles", "/modelData", oTileFactory);

it working fine but tile is display in center but i want this type of Dashborad

Please help me.

maxresdefault.jpg (43.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers

Skip to Content