on 03-13-2015 7:05 AM
Hi,
Somehow my sap.m.ObjectHeader object's markFavorite property is not working i.e. setting it to true does not make it visible in the UI.
Other properties like icon, title are working fine. Has anyone experienced a similar issue?
code snippet:
this.objHeader = new sap.m.ObjectHeader({
icon : "sap-icon://database",
title : "{DESCRIPTION}",
markFavorite : true
});
even in the browser's developer console when I check, the property is set to true but the favorite star is not visible.
here _grab is window._grab = sap.ui.getCore().byId; which I defined in my index.html file for debugging purposes.
I even tried :
this.objHeader = new sap.m.ObjectHeader({
icon : "sap-icon://database",
title : "{DESCRIPTION}"
});
this.objHeader.setMarkFavorite(true);
but doesn't work either.
Any suggestions on how to resolve this?
Hi Prabhjot, for show mark icons you need define showMarkers property true
Check it: jsbin example
this.objHeader = new sap.m.ObjectHeader({
icon : "sap-icon://database",
title : "{DESCRIPTION}",
markFavorite : true,
showMarkers: true
});
Best regards,
Pau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.