I'd like the ability to use the current index information in a <virtualize> for CSS even/odd classes.
Is your feature request related to a problem? Please describe.
Using nth-child in a virtual list leads to unpleasant class-shifting, so baking it in as a class fixes the issue
Describe the solution you'd like
Exposing the current index would be okay. Exposing some properties (like Index, IsEven, IsOdd, IsFirst, IsMiddle, IsLast) would help with other use-cases
Additional context
Most JS virtualization libraries I've used expose these for easy class binding
I'd like the ability to use the current index information in a
<virtualize>for CSS even/odd classes.Is your feature request related to a problem? Please describe.
Using nth-child in a virtual list leads to unpleasant class-shifting, so baking it in as a class fixes the issue
Describe the solution you'd like
Exposing the current index would be okay. Exposing some properties (like Index, IsEven, IsOdd, IsFirst, IsMiddle, IsLast) would help with other use-cases
Additional context
Most JS virtualization libraries I've used expose these for easy class binding