cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically change icon on Action bar item

0 Kudos

Hi,

I have Filter Action item on Action bar. I want to change icon of Action bar item when filters are selected by user and reset to original icon when Filters are empty.

I couldn't found any API/method which changes icon of Action bar item in rule. Is there any other way/workaround to do similar?

Thanks.action-bar.png

Accepted Solutions (1)

Accepted Solutions (1)

fjcarrasco
Active Participant

Hello ujjaval-bourne

you must include the two icons in your action bar and use this method to hide/show one of them according to the filter is set or not.

https://help.sap.com/doc/69c2ce3e50454264acf9cafe6c6e442c/Latest/en-US/docs-en/reference/apidoc/clas...

I hope this help.

Regards,

Kiko

It worked. Great workaround. Thanks Francisco José Carrasco Valverde.

Answers (0)