9 lines
454 B
TypeScript
9 lines
454 B
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; |