Skip to Content
author's profile photo Former Member
Former Member

How to reference Standard Icons in SAPUI 5?


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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 10, 2014 at 04:44 PM

    Hi Sebastian,

    You need to use"sap.ui.core.IconPool") to load the reference to ICON pool

    A similar discussion can be found in with examples ..



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.