-
I have a column which is an array of values which I render in the table cell as csv format. When I group that column I want the values to be spread across to their proper group. Is this possible? row with a single column of array values
what I get
what I want
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I figured it out by adding a custom groupingFn to check if cell value was an array using the defaultGroupFn as a base and passing it into the instance of useTable. I did make wrap it in useCallback() vs useMemo() so I could pass parameters to it. I then also had to adjust my cell render to use the |
Beta Was this translation helpful? Give feedback.
Ok, I figured it out by adding a custom groupingFn to check if cell value was an array using the defaultGroupFn as a base and passing it into the instance of useTable. I did make wrap it in useCallback() vs useMemo() so I could pass parameters to it. I then also had to adjust my cell render to use the
groupByVal
vs the actual cell's value.