ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
20 lines • 1.08 kB
TypeScript
/// <reference types="react" />
import { type Identifier } from '../types';
import { type RowClickFunctionBase } from './types';
export declare const DataTableCallbacksContext: import("react").Context<{
handleSort?: ((event: any) => void) | undefined;
handleToggleItem?: ((id: Identifier, event: any) => void) | undefined;
isRowExpandable?: ((record: any) => boolean) | undefined;
isRowSelectable?: ((record: any) => boolean) | undefined;
onSelect?: ((ids: Identifier[]) => void) | undefined;
rowClick?: string | false | RowClickFunctionBase | undefined;
}>;
export declare const useDataTableCallbacksContext: () => {
handleSort?: ((event: any) => void) | undefined;
handleToggleItem?: ((id: Identifier, event: any) => void) | undefined;
isRowExpandable?: ((record: any) => boolean) | undefined;
isRowSelectable?: ((record: any) => boolean) | undefined;
onSelect?: ((ids: Identifier[]) => void) | undefined;
rowClick?: string | false | RowClickFunctionBase | undefined;
};
//# sourceMappingURL=DataTableCallbacksContext.d.ts.map