@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
14 lines (13 loc) • 649 B
JavaScript
import { registerGridColumnTypes } from '@mui/x-data-grid/internals';
import { GRID_MULTI_SELECT_COL_DEF } from "./gridMultiSelectColDef.mjs";
/**
* Registers the `multiSelect` column type in the core column-type registry so core hydration
* resolves its colDef defaults. Called at module load from the Pro/Premium grid component modules
* (whose hook exports are used, so bundlers always evaluate them) — never from the community
* bundle. `registerGridColumnTypes` is idempotent, so repeated calls are safe.
*/
export function registerMultiSelectColumnType() {
registerGridColumnTypes({
multiSelect: GRID_MULTI_SELECT_COL_DEF
});
}