Skip to content

Commit 4fa5313

Browse files
author
React-Admin CI
committed
[Doc] Update RA Core EE documentation
1 parent e0de794 commit 4fa5313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs_headless/src/content/docs/ReferenceManyInputBase.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const ProductEdit = () => (
5959
);
6060
```
6161

62-
`<ReferenceManyInputBase>` requires a `reference` and a `target` prop to know which entity to fetch, and a child component (an iterator component, usually built with [`<SimpleFormIteratorBase>`](./SimpleFormIteratorBase.md)) to edit the relationship.
62+
`<ReferenceManyInputBase>` requires a `reference` and a `target` prop to know which entity to fetch, and a child component (usually a `<SimpleFormIterator>`) to edit the relationship.
6363

6464
`<ReferenceManyInputBase>` persists the changes in the reference records (variants in the above example) after persisting the changes in the main resource (product in the above example). This means that you can also use `<ReferenceManyInputBase>` in `<CreateBase>` views.
6565

@@ -84,7 +84,7 @@ const ProductEdit = () => (
8484

8585
## `children`
8686

87-
`<ReferenceManyInputBase>` creates an `ArrayInputContext`, so it accepts the same type of children as `<ArrayInputBase>`: a Form iterator. You can build your own form iterator by leveraging [`<SimpleFormIteratorBase>`](./SimpleFormIteratorBase.md). It renders one row for each related record, giving the user the ability to add, remove, or edit related records.
87+
`<ReferenceManyInputBase>` creates an `ArrayInputContext`, so it accepts the same type of children as `<ArrayInput>`: a Form iterator. React-admin bundles one such iterator: `<SimpleFormIterator>`. It renders one row for each related record, giving the user the ability to add, remove, or edit related records.
8888

8989
```jsx
9090
<ReferenceManyInputBase reference="variants" target="product_id">
@@ -97,7 +97,7 @@ const ProductEdit = () => (
9797
</ReferenceManyInputBase>
9898
```
9999

100-
Check out [the `<SimpleFormIteratorBase>` documentation](./SimpleFormIteratorBase.md) for more details.
100+
Check out [the `<SimpleFormIterator>` documentation](https://marmelab.com/react-admin/SimpleFormIterator.html) for more details.
101101

102102
## `defaultValue`
103103

@@ -151,7 +151,7 @@ By default, ra-core-ee restricts the possible values to 25 and displays no pagin
151151

152152
## `rankSource`
153153

154-
If the Form iterator you use as `ReferenceManyInputBase` children provides controls to reorder the items in the list and the related records have a numeric rank field, you can enable the reordering feature by setting the `rankSource` prop.
154+
If the Form iterator you use as `ReferenceManyInputBase` children (e.g. `<SimpleFormIterator>`) provides controls to reorder the items in the list and the related records have a numeric rank field, you can enable the reordering feature by setting the `rankSource` prop.
155155

156156
For example, if the variants have a `rank` field, you can set the `rankSource` prop like this:
157157

0 commit comments

Comments
 (0)