@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
9 lines • 454 B
text/typescript
import type { RefObject } from '@mui/x-internals/types';
import type { GridScrollApi } from "../models/api/gridScrollApi.mjs";
/**
* Focuses an element while preserving the grid scroll position.
*
* Uses the native `preventScroll` focus option when supported, and otherwise
* restores the scroll position manually after focusing.
*/
export declare function focusElement<Api extends GridScrollApi>(element: HTMLElement, apiRef: RefObject<Api>): void;