UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the Data Grid components (MUI X).

56 lines (55 loc) 1.44 kB
/** * The object containing the column properties of the rendering state. */ export interface GridRenderColumnsProps { /** * The index of the first rendered column. */ firstColIdx: number; /** * The index of the last rendered column. */ lastColIdx: number; /** * The left offset required to position the viewport at the beginning of the first rendered column. */ leftEmptyWidth: number; /** * The right offset required to position the viewport to the end of the last rendered column. */ rightEmptyWidth: number; } /** * The object containing the row properties of the rendering state. */ export interface GridRenderRowProps { /** * The rendering zone page calculated from the scroll position. */ page: number; /** * The index of the first rendered row. */ firstRowIdx: number; /** * The index of the last rendered row. */ lastRowIdx: number; } /** * The object containing the pagination properties of the rendering state. */ export interface GridRenderPaginationProps { /** * The current page if pagination is enabled. */ paginationCurrentPage?: number; /** * The page size if pagination is enabled. */ pageSize?: number; } /** * The full rendering state. */ export type GridRenderContextProps = GridRenderColumnsProps & GridRenderRowProps & GridRenderPaginationProps;