Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How do you change the size and colour of an Icon

Hello guys,

I am new to SAP UI5 and was wondering what the proper way to change some properties of an icon inside my StandardListItem (in my XML view). I normally design the layout of the app in the XML view and then turn on the java script to add actions etc. In this case, I have created an XML Master view and populated it with some data. Each item on the list has an icon related to it. Can you please tell me how I can go about changing the properties of those icons in my Master.controller.js

My code is attached (part of my Master.view.xml is shown in the file list.xml).

list.xml (841 B)
Former Member


You can customize your default CSS by custom one.

follow this link and go to method 3.

Implementing CSS in SAPUI5 Application



1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question