@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
12 lines (11 loc) • 572 B
TypeScript
import { GridLoadingOverlayVariant } from '../../../components/GridLoadingOverlay';
import { GridSlotsComponent } from '../../../models/gridSlotsComponent';
export type GridOverlayType = keyof Pick<GridSlotsComponent, 'noRowsOverlay' | 'noResultsOverlay' | 'loadingOverlay'> | null;
/**
* Uses the grid state to determine which overlay to display.
* Returns the active overlay type and the active loading overlay variant.
*/
export declare const useGridOverlays: () => {
overlayType: GridOverlayType;
loadingOverlayVariant: GridLoadingOverlayVariant | null;
};