UNPKG

drf-react-by-schema

Version:

Components and Tools for building a React App having Django Rest Framework (DRF) as server

18 lines 1.01 kB
import { RefObject } from 'react'; import { GridRowId } from '@mui/x-data-grid'; import { GridApiCommunity } from '@mui/x-data-grid/internals'; import { Item } from '../../../@types'; export declare const useRowMode: (apiRef: RefObject<GridApiCommunity>) => { validationErrors: Record<GridRowId, Record<string, string>>; setValidationErrors: import("react").Dispatch<import("react").SetStateAction<Record<GridRowId, Record<string, string>>>>; selectionModel: Item[]; setSelectionModel: import("react").Dispatch<import("react").SetStateAction<Item[]>>; selectionModelIds: GridRowId[]; setSelectionModelIds: import("react").Dispatch<import("react").SetStateAction<GridRowId[]>>; handleSaveClick: (id: GridRowId) => () => void; handleEditInlineClick: (id: GridRowId, fieldToFocus?: string) => () => void; handleCancelClick: (id: GridRowId) => () => void; handleScrollToTop: () => void; isRowEditing: (id: GridRowId) => boolean; }; //# sourceMappingURL=useRowMode.d.ts.map