@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
22 lines • 1.16 kB
TypeScript
import * as React from 'react';
import type { GridSlotProps } from '../../models/gridSlotsComponentsProps';
import { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams {
/**
* Callback called when the value is changed by the user.
* @param {Event<any>} event The event source of the callback.
* @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
*/
onValueChange?: (event: Parameters<NonNullable<GridSlotProps['baseSelect']['onOpen']>>[0], newValue: any) => Promise<void> | void;
/**
* If true, the select opens by default.
*/
initialOpen?: boolean;
}
declare function GridEditSingleSelectCell(props: GridEditSingleSelectCellProps): React.JSX.Element | null;
declare namespace GridEditSingleSelectCell {
var propTypes: any;
}
export { GridEditSingleSelectCell };
export declare const renderEditSingleSelectCell: (params: GridEditSingleSelectCellProps) => React.JSX.Element;