UNPKG

@mui/x-data-grid-premium

Version:

The Premium plan edition of the Data Grid Components (MUI X).

15 lines (13 loc) 658 B
import { createSelector } from '@mui/x-data-grid-pro/internals'; export const gridAggregationStateSelector = state => state.aggregation; /** * Get the aggregation model, containing the aggregation function of each column. * If a column is not in the model, it is not aggregated. * @category Aggregation */ export const gridAggregationModelSelector = createSelector(gridAggregationStateSelector, aggregationState => aggregationState.model); /** * Get the aggregation results as a lookup. * @category Aggregation */ export const gridAggregationLookupSelector = createSelector(gridAggregationStateSelector, aggregationState => aggregationState.lookup);