HI Marc,
What you can do is, you can write some Css Classes in customStyle.scss lets say
.class1{
background-color: red
}
.class2{
background-color: blue
}
then, in the dynamic classes section, you can write if else condition based on the attribute value, and set the classes,
eg.
if $object/attribute='xyz' then 'class1'
else 'class2'
Let me know, if you face any issues,
Hope it helps!
Having a status, which is maintained in runtime give some challenges in using it for dynamic classes
You could create this domain model, where the Status is captured in an entity, which also contains the desired class.
The class set on the status, can be plotted on the DynamicClass attribute using a calculated attribute, with this microflow as source
Still, the class can be defined by an administrator, if this doesn't exist in your CSS, it won't work.
Since your classes are static, I would opt for a enum on your project and NOT provide the admin to maintain the statusses. My experience is that requirements regarding dynamic statussess “so we can maintain them ourselves”……. in real they will add the statusses once and forget that they can change them.
TLDR: go for an enum, dynamic statussess aren't dynamic ;-)