UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

19 lines 916 B
import { type Identifier } from "../types.cjs"; import { type RowClickFunctionBase } from "./types.cjs"; export declare const DataTableCallbacksContext: import("react").Context<{ handleSort?: (event: any) => void; handleToggleItem?: (id: Identifier, event: any) => void; isRowExpandable?: (record: any) => boolean; isRowSelectable?: (record: any) => boolean; onSelect?: ((ids: Identifier[]) => void) | undefined; rowClick?: string | RowClickFunctionBase | false; }>; export declare const useDataTableCallbacksContext: () => { handleSort?: (event: any) => void; handleToggleItem?: (id: Identifier, event: any) => void; isRowExpandable?: (record: any) => boolean; isRowSelectable?: (record: any) => boolean; onSelect?: ((ids: Identifier[]) => void) | undefined; rowClick?: string | RowClickFunctionBase | false; }; //# sourceMappingURL=DataTableCallbacksContext.d.ts.map