Add theme/Enviroment/role classes to the DOM - Mendix Forum

Add theme/Enviroment/role classes to the DOM

6

Something that I run into every now and then is that it is important to have some visual que that you are in acceptance, test of local.

Or which role you are using.

or want to add a class to the top level layout dynamicly

Mendix is very good at putting page classes and layout classes high in the DOM tree.

The idea is either:
have mendix automatically add a class to the top level of the DOM per enviroment and role

or

somehow have a way to do this with microflows and dynamic classes.

asked
2 answers

I agree, that would be nice.

You could use constants in dynamic classes to achieve this, unfortunately, we cannot use them outside a data container. 

https://forum.mendix.com/link/ideas/1548

Created

ok so after talking with the Council of UX (props to Marnix, Tim & Sytze)
rol is already set on the DOM
adding enviroment would also be nice if done the same way :D 

Created