Skip to content

Commit e0de794

Browse files
authored
Merge pull request #11037 from marmelab/doc/ra-core-ee-9bc85481742818a2b8a0e5593ad4c7e91cba6bc3
[Doc] Update RA Core EE documentation
2 parents 5cf2749 + 72d3119 commit e0de794

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs_headless/src/content/docs/ReferenceManyInputBase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const ProductEdit = () => (
7171
| ----------------- | -------- | ------------------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7272
| `target` | Required | `string` | - | Target field carrying the relationship on the referenced resource, e.g. 'user_id' |
7373
| `reference` | Required | `string` | - | The name of the resource for the referenced records, e.g. 'books' |
74-
| `children` | Optional | `ReactNode` | - | One or several elements that render a list of records based on a `ListContext` |
74+
| `children` | Optional | `Element` | - | One or several elements that render a list of records based on a `ListContext` |
7575
| `defaultValue` | Optional | `array` | - | Default value of the input. |
7676
| `filter` | Optional | `Object` | - | Filters to use when fetching the related records, passed to `getManyReference()` |
7777
| `mutationOptions` | Optional | `UseMutationOptions` | - | Options for the mutations (`create`, `update` and `delete`) |

docs_headless/src/content/docs/ReferenceOneInputBase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ const BookEdit = () => (
5858
| ----------------- | -------- | -------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5959
| `target` | Required | `string` | - | Target field carrying the relationship on the referenced resource, e.g. 'book_id' |
6060
| `reference` | Required | `string` | - | The name of the resource for the referenced records, e.g. 'book_details' |
61-
| `children` | Optional | `ReactNode` | - | One or several input elements that accept a `source` prop |
61+
| `children` | Optional | `Element` | - | One or several input elements that accept a `source` prop |
6262
| `defaultValue` | Optional | `Object` | - | Default value for the related record (in case it does not yet exist) |
63-
| `error` | Optional | `ReactNode` | - | The element to display when an error occurs while loading a reference |
63+
| `error` | Optional | `Element` | - | The element to display when an error occurs while loading a reference |
6464
| `filter` | Optional | `Object` | - | Filters to use when fetching the related record, passed to `getManyReference() |
65-
| `loading` | Optional | `ReactNode` | - | The element to display while loading a reference |
65+
| `loading` | Optional | `Element` | - | The element to display while loading a reference |
6666
| `mutationOptions` | Optional | `UseMutationOptions` | - | Options for the mutations (`create` and `update`) |
6767
| `render` | Optional | `Function` | - | A function that returns the children to display. Takes precedence over `children` |
6868
| `sort` | Optional | `{ field, order }` | `{ field: 'id', order: 'ASC' }` | Sort order to use when fetching the related record, passed to `getManyReference() |

0 commit comments

Comments
 (0)