GridCellParams Interface
Object passed as parameter in the column GridColDef cell renderer.
Import
import { GridCellParams } from '@mui/x-data-grid-premium';
// or
import { GridCellParams } from '@mui/x-data-grid-pro';
// or
import { GridCellParams } from '@mui/x-data-grid';
Properties
Name | Type | Description |
---|---|---|
cellMode | GridCellMode | The mode of the cell. |
colDef | GridStateColDef | The column of the row that the current cell belongs to. |
field | string | The column field of the cell that triggered the event. |
formattedValue? | F | undefined | The cell value formatted with the column valueFormatter. |
hasFocus | boolean | If true, the cell is the active element. |
id | GridRowId | The grid row id. |
isEditable? | boolean | If true, the cell is editable. |
row | GridRowModel<R> | The row model of the row that the current cell belongs to. |
rowNode | N | The node of the row that the current cell belongs to. |
tabIndex | 0 | -1 | the tabIndex value. |
value? | V | undefined | The cell value. If the column has valueGetter , use params.row to directly access the fields. |