22 lines
1.1 KiB
TypeScript
22 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.mjs";
|
|
import type { GridRenderEditCellParams } from "../../models/params/gridCellParams.mjs";
|
|
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; |