You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #2220 on May 05, 2020 20:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently we have :
sortType: (rowA, rowB, id),
filter:(rows, id, filterValue),
in Column option, can we add
groupBy: (rows, columnId)
?which change the defaultGroupByFn inside useGroupBy with something like:
const currentColumn = allColumns.find(col => col.id === columnId) const customGroupByFn = typeof currentColumn.groupBy === 'function' ? currentColumn.groupBy : groupByFn let rowGroupsMap = customGroupByFn(rows, columnId)
This would allow user to custom there own grouping method on specific column rather than changing the whole groupByFn for all columns
Beta Was this translation helpful? Give feedback.
All reactions