Replies: 2 comments
-
|
I have a similar use case. In my table, I'd like to have parent rows to be a simple label with a button to toggle expanded state. Ideally, these would be a different type compared to children rows. For now, I work around this by making the parent rows the same type as the children rows, however that leads to a number of type issues as the table grows in complexity. Essentially, I'm looking for a way to define the inverse of sub-components (as shown here), where the parent row is a separate type that is still defined within the table data model. |
Beta Was this translation helpful? Give feedback.
-
|
Hi :) ex: type data = { id: string, firstname: string, comments: { id: string, content: string }[] }[];My table looks like this: Maybe it does not make sense to use sub rows feature to handle this use case? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the expanded rows functionality but on the expanded rows i have a differing data set.
Using the same cell method in the columnDefs sticks to the first type but i need a way for it to reference the subRow type. i.e. when in the cell if row.depth is 1 then everything on row would need to reference the second type otherwise it would work as is out of the box.
Beta Was this translation helpful? Give feedback.
All reactions