Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Fix typos in ReferenceArrayField #8087

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/ReferenceArrayField.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ For instance, to render only tags that are 'published', you can use the followin
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```
{% endraw %}

Expand All @@ -111,7 +111,7 @@ By default, `<SimpleShowLayout>`, `<Datagrid>` and other layout components infer
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```

That's why you often need to set an explicit `label` on a `<ReferenceField>`:
Expand All @@ -121,7 +121,7 @@ That's why you often need to set an explicit `label` on a `<ReferenceField>`:
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```

React-admin uses [the i18n system](./Translation.md) to translate the label, so you can use translation keys to have one label for each language supported by the interface:
Expand All @@ -131,7 +131,7 @@ React-admin uses [the i18n system](./Translation.md) to translate the label, so
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```

## `pagination`
Expand Down Expand Up @@ -178,7 +178,7 @@ For instance, if the `posts` resource has a `tag_ids` field, set the `reference`
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```

## `sort`
Expand All @@ -200,7 +200,7 @@ For instance, to sort tags by title in ascending order, you can use the followin
<SingleFieldList>
<ChipField source="name" />
</SingleFieldList>
</ReferenceField>
</ReferenceArrayField>
```
{% endraw %}

Expand Down