Taking HEX directly from database

0
I have a list view inside that i have a container for that containier i want to set the back ground image based on the HEX code. The hex code is an string attribute and part of color entity. How can I use that hex code to display background image.
asked
1 answers
0

If you have a fixed number of possible hex codes, then you could add them to your stylesheet and use dynamic classes to set them on your background.

 

https://docs.mendix.com/refguide/common-widget-properties/#dynamicclasses

 

If you don't have a fixed number, then you are probably looking at having to use a JavaScript Action to manipulate the DOM to add the background.

 

Good luck!

answered