Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export interface ColumnDef_ColumnGrouping<
/**
* Specify a value to be used for grouping rows on this column. If this option is not specified, the value derived from `accessorKey` / `accessorFn` will be used instead.
*/
getGroupingValue?: (row: TData) => any
getGroupingValue?: (row: TData, index: number) => any
}

export interface Column_ColumnGrouping<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export function row_getGroupingValue<
if (row._groupingValuesCache) {
row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(
row.original,
row.index,
)
}

Expand Down