@mui/x-data-grid-premium
Version:
The Premium plan edition of the MUI X Data Grid Components.
26 lines • 1.4 kB
text/typescript
import type { RefObject } from '@mui/x-internals/types';
import { type GridColDef, type GridRowId, type GridValidRowModel, type GridRowModel } from '@mui/x-data-grid';
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
export declare class CellValueUpdater {
rowsToUpdate: Map<GridRowId, GridValidRowModel>;
updateRow: (row: GridRowModel) => void;
options: {
apiRef: RefObject<GridPrivateApiPremium>;
processRowUpdate: DataGridPremiumProcessedProps['processRowUpdate'];
onProcessRowUpdateError: DataGridPremiumProcessedProps['onProcessRowUpdateError'];
getRowId: DataGridPremiumProcessedProps['getRowId'];
};
constructor(options: CellValueUpdater['options']);
updateCell({
rowId,
field,
pastedCellValue
}: {
rowId: GridRowId;
field: GridColDef['field'];
pastedCellValue: string;
}): void;
applyUpdates(): void;
}
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pagination" | "paginationMode" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId" | "onClipboardPasteStart" | "onClipboardPasteEnd" | "splitClipboardPastedText" | "disableClipboardPaste" | "onBeforeClipboardPasteStart" | "clipboardCopyCellDelimiter">) => void;