ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
14 lines • 639 B
TypeScript
import { ReactNode } from 'react';
/**
* Get default string representation of a record
*
* @example // No customization
* const getRecordRepresentation = useGetRecordRepresentation('posts');
* getRecordRepresentation({ id: 1, title: 'Hello' }); // => "#1"
*
* @example // With <Resource name="posts" recordRepresentation="title" />
* const getRecordRepresentation = useGetRecordRepresentation('posts');
* getRecordRepresentation({ id: 1, title: 'Hello' }); // => "Hello"
*/
export declare const useGetRecordRepresentation: (resource: string) => (record: any) => ReactNode;
//# sourceMappingURL=useGetRecordRepresentation.d.ts.map