93
Views
8
Comments
Change icon dynamically in mobile
Question

Hi,


Is there a way to change the icon dynamically in mobile?

Currently, you need to click and choose manually the icon you want to see in your mobile. 

Thanks,

Lanz

Rank: #0

Hi Lanz,


I'm not sure I understand your question? You mean at runtime? Or in Service Studio?

Rank: #222

Hi Lanz,

You can create an If statement, something like that:

It is lighter to you for read and analise the code.


Best regards,

Paulo

Rank: #1974

Hi Lanz,

It's a pretty old post, has this been resolved?
In Traditional Web, Expression can be used in Name Property of Icon of RichWidget, so IconNameId can be set dynamically.

However, In in Reactive Web/Mobile App, Expression cannot be used in Icon Property, so IconName (e.g. "icon fa-link") could be dynamically set in Style Property as shown in the following post.

https://www.outsystems.com/forums/discussion/35319/change-icons-dynamicaly-at-run-time/#Post125601

Best regards,

Kosuke Ogawa

mvp_badge
MVP
Rank: #90

Hi Kosuke Ogawa,

Refer this Post: https://www.outsystems.com/forums/discussion/59327/change-icon-dynamically-in-mobile/#Post226372


Hope this helps you!


Regards,

Benjith Sam

Rank: #1974

Hi Benjith,

Oh, I see…I didn't know that you can do that!
Thank you  for the useful information.

Best regards,

Kosuke Ogawa