UNPKG

@mui/x-data-grid

Version:

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

19 lines 819 B
import { RefObject } from '@mui/x-internals/types'; import type { GridRowId, GridRowModel } from "../gridRows.js"; import { GridColDef } from "../colDef/index.js"; /** * Get the cell aggregation result * @param {GridRowId} id The row id * @param {string} field The field * @returns { { position: 'footer' | 'inline'; value: any } | null } The cell aggregation result */ export type GetCellAggregationResultFn = (id: GridRowId, field: string) => { position: 'footer' | 'inline'; value: any; formattedValue?: any; } | null; export type FilterValueGetterFn = (row: GridRowModel, colDef: GridColDef) => any; export interface GridAggregationInternalHooks<Api, Props> { useCellAggregationResult: GetCellAggregationResultFn; useFilterValueGetter: (apiRef: RefObject<Api>, props: Props) => FilterValueGetterFn; }