Files
ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/models/api/gridPreferencesPanelApi.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

16 lines
612 B
TypeScript

import { GridPreferencePanelsValue } from '../../hooks/features/preferencesPanel/gridPreferencePanelsValue';
/**
* The preferences panel API interface that is available in the grid [[apiRef]].
*/
export interface GridPreferencesPanelApi {
/**
* Displays the preferences panel. The `newValue` argument controls the content of the panel.
* @param {GridPreferencePanelsValue} newValue The panel to open. Use `"filters"` or `"columns"`.
*/
showPreferences: (newValue: GridPreferencePanelsValue) => void;
/**
* Hides the preferences panel.
*/
hidePreferences: () => void;
}