CSS selector helper widget configuration.

0
Hi,  I have four user role in which i want to set a diifferent theme for each user , I Know that it can be done with css selector helper widget ,Does anyone have idea about configuration of css  selector helper widget. Thanks in advance. 
asked
2 answers
0

In newer versions on Mendix, you can set dynamic classes based on expressions. I don't think you can change theme of the app based on user roles, but you might be able to change classes based on dynamic classes expressions.

Another way would be to change visibility of elements based on user-roles.

answered
0

Theme is a really big topic so to say. In my experience, apps have a single theme to maintain consistency when same person has different user role for instance. This increases the usability and familiarity of the application for users.

You could maybe define themes for different roles but that would be a lot of work and some trial and error as I’ve not seen themes of the app set this way. Button colors or minor things you could definitely change via css variables and setting them via javascript. See this post: https://forum.mendix.com/link/questions/111682

I would suggest you to really think if the use case justifies the effort and if its really needed.

css selector widget is deprecated because of introduction of dynamic classes from Mx 9 onwards. Also the widget would be helpful to design specific elements on your page, but theming with it I’m not so sure.

answered