Reusable Data Table component with expandable subrows #3673
BertVanHecke
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the reusable data table component from ShadcnUI in my project. Now i want to make the rows expandable. I just can't get it to work with the expandable API from Tanstack-Table. Typescript gives me an error saying my row (which is of type TData) does not have a property 'subrows'. I understand that TData is a generic type and so this error is correct but how would i go about making the expandable row functionality generic?
The error: Property 'subRows' does not exist on type 'TData'.
Parent component
Reusable data table
I'd really appreciate any help! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions