cancel
Showing results for 
Search instead for 
Did you mean: 

How do you change the size and colour of an Icon

Former Member
0 Kudos

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).

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_15166
Active Contributor
0 Kudos

Hi,

You can customize your default CSS by custom one.

follow this link and go to method 3.

Regards

Dhananjay

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Dhananjay, that did it!

former_member182862
Active Contributor
0 Kudos

Hi Fouad

Can you kindly mark Dhananjay's answer as "Correct Answer"?

Thanks

Dennis (moderator)

santhu_gowdaz
Active Contributor
0 Kudos

may size you can't change bec ui5 icon's are responsive but using "iconColor" property. you can change the icon color.

SAPUI5 Explored