RenderCellProps<TRow, TSummaryRow>
Props passed to custom cell renderers.Properties
The column object for this cell.
The row object for this cell.
The row index.
Whether the cell is editable.
The tab index for keyboard navigation.
Callback to update the row.
RenderHeaderCellProps<TRow, TSummaryRow>
Props passed to custom header cell renderers.Properties
The column object for this header cell.
The current sort direction (‘ASC’ or ‘DESC’), or undefined if not sorted.
The sort priority for multi-column sorting, or undefined if not sorted.
The tab index for keyboard navigation.
RenderEditCellProps<TRow, TSummaryRow>
Props passed to custom edit cell renderers (editors).Properties
The column object for this cell.
The row object for this cell.
The row index.
Callback to update the row. Pass
true for commitChanges to close the editor.Callback to close the editor. Pass
true for commitChanges to save changes, false to discard.
Pass true for shouldFocusCell to return focus to the cell.RenderSummaryCellProps<TSummaryRow, TRow>
Props passed to summary cell renderers.Properties
The column object for this summary cell.
The summary row object.
The tab index for keyboard navigation.
RenderGroupCellProps<TRow, TSummaryRow>
Props passed to group cell renderers when usingTreeDataGrid.
Properties
The group key value.
The column object for this group cell.
The group row object.
Array of child rows in this group.
Whether the group is expanded.
The tab index for keyboard navigation.
Callback to toggle the group expansion state.
RenderRowProps<TRow, TSummaryRow>
Props passed to custom row renderers.Properties
The row object.
Array of visible columns in the viewport.
The row index.
Index of the selected cell in this row, or undefined if no cell is selected.
Whether the row is selected.
Whether row selection is disabled for this row.
CSS grid-row-start value.
Index of the last frozen column.
Index of the cell being dragged over, or undefined.
The editor element for the selected cell, or undefined.
onRowChange
(column: CalculatedColumn<TRow, TSummaryRow>, rowIdx: number, newRow: TRow) => void
required
Callback to update the row.
Function to determine row class names.
Whether this is a tree grid.
CellRendererProps<TRow, TSummaryRow>
Props passed to the cell renderer when usingrenderers.renderCell.
Properties
The column object for this cell.
The row object for this cell.
The row index.
Number of columns this cell spans, or undefined.
Whether this cell is being dragged over.
Whether this cell is selected.
Callback to update the row.
Callback to select a cell.
RenderCheckboxProps
Props for custom checkbox renderers.Properties
Whether the checkbox is checked.
Whether the checkbox is in an indeterminate state.
Whether the checkbox is disabled.
Change handler. The second parameter indicates if shift key was pressed.
Tab index for keyboard navigation.
Accessible label for the checkbox.
ID of the element that labels the checkbox.
RenderSortStatusProps
Props for custom sort status renderers.Properties
The current sort direction (‘ASC’ or ‘DESC’), or undefined if not sorted.
The sort priority for multi-column sorting, or undefined if not sorted.
RenderSortIconProps
Props for custom sort icon renderers.Properties
The current sort direction (‘ASC’ or ‘DESC’), or undefined if not sorted.
RenderSortPriorityProps
Props for custom sort priority renderers.Properties
The sort priority for multi-column sorting, or undefined if not sorted.