@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
21 lines • 701 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { gridRowIdSelector, GRID_STRING_COL_DEF } from '@mui/x-data-grid';
import { renderRowReorderCell } from "../../../components/GridRowReorderCell.js";
export const GRID_REORDER_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
type: 'custom',
field: '__reorder__',
sortable: false,
filterable: false,
width: 50,
align: 'center',
headerAlign: 'center',
disableColumnMenu: true,
disableExport: true,
disableReorder: true,
resizable: false,
// @ts-ignore
aggregable: false,
renderHeader: () => ' ',
renderCell: renderRowReorderCell,
rowSpanValueGetter: (_, row, __, apiRef) => gridRowIdSelector(apiRef, row)
});