F
Filamentβ€’14mo ago
qcol

Grouping data in a table

I have a table where one of the columns is "group_id". Is there any way to customize the table display so that each group can be collapsed (collapsed by default)? Or if that's too cumbersome, highlight the table with alternating colours by group (striped rows).
4 Replies
Dan Harrin
Dan Harrinβ€’14mo ago
unfortunately not in v2 we have already implemented this ready for v3
qcol
qcolβ€’14mo ago
Thank you for the info. So, can't wait for v3 πŸ™‚
Dennis Koch
Dennis Kochβ€’14mo ago
You can pass css classes based on the record though. I think it's getRecordClasses or similar on ListPage
Dan Harrin
Dan Harrinβ€’14mo ago
You can do striped rows with isTableStriped(), should be in the docs i think