Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to reference Standard Icons in SAPUI 5?

$
0
0

Hello,

 

I want add an Icon to an Button. My code look like:

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

    text : "Select Scanner",

    tooltip : "This is a test tooltip",

    icon : "images/save-icon.gif",

    width : "100px",

    height : "100px",

    press : function() { oShell.setContent(seite2); }

});

 

Unfortunately the Icon is not displayed and on the Java Script Console I get an 404 Error.

I suppose the Standard SAP Icons are included in the SAPUI5 Framework, so I don't have them in my project. How to reference them correctly?

Best Regards

Sebastian Lenk


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>