Hi there,
today I've tryed to use the iconset (icon font) that comes with SAPUI5, but it gives me some error. I Tryed the following:
var aNames = sap.ui.core.IconPool.getIconNames();
aNames is "sap-icon://accidental-leave".
Now I tryed to use this in a button:
new sap.ui.core.Icon( { src : sap.ui.core.IconPool.getIconURI( aNames[0] ), size : "32px", color : "#333333", activeColor : "white", activeBackgroundColor : "#333333", hoverColor : "#eeeeee", hoverBackgroundColor : "#666666", width : "60px", } ).addStyleClass( "fontIcon" ), tooltip : oBundle.getText( 'quotationsView.quotationsTable.toolbar.delete' ), press : oController.deleteQuote } )
But this gives me an error:
sap-ui-core.js (Zeile 55)
Error: "Element sap.ui.core.Icon#__icon0" is of type object, expected sap.ui.core.URI for property "icon" of Element sap.ui.commons.Button#__button0
Any sugesstions?
Thanks in advance!