allow expressions in Style Field - Mendix Forum

allow expressions in Style Field


we need to make a progress bar.

there are some widgets out there that can do this, but we could also do this with some simple CSS.



2 answers

yeah, we ended up using the progressbar widget which is probably easier to use/setup :D

but who knows, their might be some other dynamic css things, that cant easily be solved with classes.

but I also dont really like the idea of ppl using the style field hahaha :D 

so conflicted :D 


This is an interesting idea and could be a powerful enhancement.

I encountered a similar case and considered using the ‘Set Attribute’ or ‘Attribute Helper’ widget to set an attribute with value, so the CSS function attr() could be used to set the width. However, using this function with the width property is not supported even by some of the major browsers.