Files
simply_cpq/website/node_modules/@mui/x-data-grid/models/api/gridPreferencesPanelApi.d.ts
T
2026-08-07 21:39:30 +02:00

17 lines
704 B
TypeScript

import type { GridPreferencePanelsValue } from "../../hooks/features/preferencesPanel/gridPreferencePanelsValue.js";
/**
* 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.
* @param {string} panelId The unique panel id
* @param {string} labelId The unique button id
*/
showPreferences: (newValue: GridPreferencePanelsValue, panelId?: string, labelId?: string) => void;
/**
* Hides the preferences panel.
*/
hidePreferences: () => void;
}