is it possible to add variable classes to li items of a listview?

0
we have a listview that generates list items with different states. I can delete the padding of all nested items, but it would be easier if I could just add classes to the list view items.
asked
3 answers
1

I ran into this earlier and use a css adjecent selector (+). See https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_selectors

In the modeler I add a container with conditional visibility on whatever you want (in this example: $currentObject/FullName = 'Test') and place this directly above the container I want to style.

In my scss I use the following:

And the result is:

answered
0

I don't think you can directly.

Is using the css selector widget an option for you to set styling on the listview item based on the state?

answered
0

Hi Jason, have you seen the EnumClass widget in the app store? I think it will you do what you want:

https://appstore.home.mendix.com/link/app/2641/

answered