File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -59,17 +59,15 @@ const BookShow = () => (
5959| -------------- | -------- | ------------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------- |
6060| ` reference ` | Required | ` string ` | - | The name of the resource for the referenced records, e.g. 'book_details' |
6161| ` target ` | Required | string | - | Target field carrying the relationship on the referenced resource, e.g. 'book_id' |
62- | ` children ` | Optional& nbsp ; * | ` ReactNode ` | - | The Field element used to render the referenced record |
63- | ` render ` | Optional& nbsp ; * | ` (ReferenceFieldContext) => ReactNode ` | - | A function that takes the ` ReferenceFieldContext ` and returns a React element |
62+ | ` children ` | Optional | ` ReactNode ` | - | The Field element used to render the referenced record |
63+ | ` render ` | Optional | ` (ReferenceFieldContext) => ReactNode ` | - | A function that takes the ` ReferenceFieldContext ` and returns a React element |
6464| ` empty ` | Optional | ` ReactNode ` | - | The text or element to display when the referenced record is empty |
6565| ` filter ` | Optional | ` Object ` | ` {} ` | Used to filter referenced records |
6666| ` link ` | Optional | `string | Function` | ` edit ` | Target of the link wrapping the rendered child. Set to ` false ` to disable the link. |
6767| ` offline ` | Optional | ` ReactNode ` | - | The text or element to display when there is no network connectivity |
6868| ` queryOptions ` | Optional | [ ` UseQueryOptions ` ] ( https://tanstack.com/query/v5/docs/react/reference/useQuery ) | ` {} ` | ` react-query ` client options |
6969| ` sort ` | Optional | ` { field: String, order: 'ASC' or 'DESC' } ` | ` { field: 'id', order: 'ASC' } ` | Used to order referenced records |
7070
71- ` * ` You must provide either ` children ` or ` render ` .
72-
7371` <ReferenceOneField> ` also accepts the [ common field props] ( ./Fields.md#common-field-props ) .
7472
7573## ` children `
You can’t perform that action at this time.
0 commit comments