UNPKG

@mui/x-data-grid-premium

Version:

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

12 lines 741 B
import type { RefObject } from '@mui/x-internals/types'; import { type GridApi } from '@mui/x-data-grid-pro'; import type { GridInitialStatePremium } from "../../models/gridStatePremium.js"; import type { DataGridPremiumProps } from "../../models/dataGridPremiumProps.js"; /** * Automatically hide columns when added to the row grouping model and stop hiding them when they are removed. * Handles both the `props.initialState.rowGrouping.model` and `props.rowGroupingModel` * Does not work when used with the `hide` property of `GridColDef` */ export declare const useKeepGroupedColumnsHidden: (props: { apiRef: RefObject<GridApi | null>; } & Pick<DataGridPremiumProps, "initialState" | "rowGroupingModel">) => GridInitialStatePremium;