I have a widget (text in container in particular case) and I want to determine it’s css class programmatically (in nanoflow or using some kind of expression) on the basis of value in a field of entity in context. How can I do that in Mendix 8? Are there any examples? I ‘ve found CssClassSwitcher widget in appstore, but it seems useless – stuck at error “Nanoflow should not have parameters.”/ “Microflow should not have parameters.” Any help appreciated
I think widget ShowByCondition should help in your usecase! Adding classes is something most widgets and Mendix by default prevent.
Also you could add visibillity contraints to your container and add some expressions like: