How to change color of icon widget using color selection through combo box ?
Application Type
Traditional Web

How to change color of icon widget using color selection through combo box ?

if i select the color through combo box dropdown then it should change the icon widget color accordingly.

Hey,

You'll have to use inline css to achieve that. You can have if conditions in your css, so just create conditions with colors considering the value you select in your combo box. You'll probably need to enclose the icon in a container and use the text-color of the container to color the icon.

Cheers

Hi Garima,


In your case you have to apply If condition into the css class, 
or better understanding please share your oml here.


Thanks,

Shriyash

Hello

You can refer to this, and check @Jozy Sohail  Reply

https://www.outsystems.com/forums/discussion/80390/how-to-change-color-of-an-icon/

I hope this helps

Thanks

Hi Garima,

  You should trying the following steps :

1.Bind  the Color Entities with your Combobox widgets . 

2.Take a Local Variables for Hold the ComboxBox Value.

3.Bind the icon with Container and Add the Extended Properties.

4. 

add Code in the Value fields :

   "Color:"+<Local Variable>

5.Refresh the Icon container with OnChange the Combobox.


I hope this will help you.


Thanks & Regards 

Navneet Sharma 

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.