@mui/x-data-grid
Version:
The community edition of the data grid component (MUI X).
27 lines (26 loc) • 613 B
TypeScript
import type { GridStateColDef } from '../colDef/gridColDef';
/**
* Object passed as parameter of the column order change event.
*/
export interface GridColumnOrderChangeParams {
/**
* The HTMLElement column header element.
*/
element?: HTMLElement | null;
/**
* The column field of the column that triggered the event.
*/
field: string;
/**
* The column of the current header component.
*/
colDef: GridStateColDef;
/**
* The target column index.
*/
targetIndex: number;
/**
* The old column index.
*/
oldIndex: number;
}