Skip to Content
0
Former Member
Oct 13, 2014 at 03:09 PM

Problem with Icons in Schell

15 Views

Hi.

I have

jQuery.sap.require("sap.ui.core.IconPool");

var aNames = sap.ui.core.IconPool.getIconNames();

I want use

sap.ui.core.IconPool.getIconURI(aNames[86])

for Shell in

toolPopups: [ new sap.ui.ux3.ToolPopup("contactTool",{

title: "New Contact",

tooltip: "Create New Contact",

icon: sap.ui.core.IconPool.getIconURI(aNames[86]),

iconHover: sap.ui.core.IconPool.getIconURI(aNames[86]),

content:[new sap.ui.commons.TextView({text:"Here could be a contact sheet."})],

buttons: [new sap.ui.commons.Button("cancelContactButton", {text:"Cancel",press:function(oEvent){

sap.ui.getCore().byId("contactTool").close();

}})]

})],

but icon not show.

When I use this for example on button working fine.

jQuery.sap.require("sap.ui.core.IconPool");

var aNames = sap.ui.core.IconPool.getIconNames();

var oButton = new sap.ui.commons.Button({

text: "Open Overlay Container",

icon: sap.ui.core.IconPool.getIconURI(aNames[86])

});

Thanks.