Mobile: Set icon from variable

Mobile: Set icon from variable

  

In Outsystems 10 mobile, is it possible to use a variable to select which icon to display? 

On web, the icon widget takes an IconName Identifier, which can bet set at runtime from a variable, but on mobile the icon widget only allows you to select an icon from the icon chooser.

Is it possible to select an icon the web way on mobile?

I believe it is not possible.

But you could have all the options you need in a If block in your screen, and use a variable to determine which one to show.

Ideally we'd like to support any icon, so that wouldn't really be practical.

Solution

Someone else at my company has found a solution: In the extended attributes section of the icon widget, set the property as "class" and the value as "fa fa-"+the name of the icon.

Solution