Access list view index inside mapped values

I have a status component inside a list view. It looks like this:

I want the color of the dot to be dependent on the index of the list item. However, I cannot access the index of the list view inside the status component:

I want to use i (which normally is used to reference the list view item) to use the right color. But the i now references the index of the used status.

Is there a way to get this to work?

Hey@Jeroen_Vermunt! I believe ri is what you're looking for. In short, that's the name of the List View's index when there's nesting involved :slight_smile:

https://docs.retool.com/docs/create-custom-list-views#nested-list-views

Let me know if you have any questions about this!