@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
33 lines • 989 B
TypeScript
import type { RefObject } from '@mui/x-internals/types';
import { type GridRowEntry } from '@mui/x-data-grid';
import type { GridPrivateApiPro } from "../../../models/gridApiPro.js";
interface GridRowRenderContext {
firstRowIndex: number;
lastRowIndex: number;
}
interface AdjustRowParamsOptions {
pageSize: number;
rowCount: number | undefined;
}
/**
* Adjusts the row fetch parameters to align with page boundaries.
* - Start index is decreased to the start of the page
* - End index is increased to the end of the page (capped by rowCount - 1 if defined)
*/
export declare const adjustRowParams: <T extends {
start: number | string;
end: number;
}>(params: T, options: AdjustRowParamsOptions) => T;
export declare const findSkeletonRowsSection: ({
apiRef,
visibleRows,
range
}: {
apiRef: RefObject<GridPrivateApiPro>;
visibleRows: GridRowEntry[];
range: GridRowRenderContext;
}) => {
firstRowIndex: number;
lastRowIndex: number;
} | undefined;
export {};