14 lines
863 B
TypeScript
14 lines
863 B
TypeScript
import type { RefObject } from '@mui/x-internals/types';
|
|
import type { GridCallbackDetails } from "./api/gridCallbackDetails.mjs";
|
|
import type { GridEventLookup, GridControlledStateEventLookup } from "./events/index.mjs";
|
|
import type { OutputSelector } from "../utils/createSelector.mjs";
|
|
import type { GridStateCommunity } from "./gridStateCommunity.mjs";
|
|
export interface GridControlStateItem<State extends GridStateCommunity, Args, E extends keyof GridControlledStateEventLookup> {
|
|
stateId: string;
|
|
propModel?: GridEventLookup[E]['params'];
|
|
stateSelector: OutputSelector<State, Args, GridControlledStateEventLookup[E]['params']> | ((apiRef: RefObject<{
|
|
state: State;
|
|
}>) => GridControlledStateEventLookup[E]['params']);
|
|
propOnChange?: (model: GridControlledStateEventLookup[E]['params'], details: GridCallbackDetails) => void;
|
|
changeEvent: E;
|
|
} |