Skip to content

Commit

Permalink
Merge pull request #4659 from OoDeLally/react-admin-clipboard-list-field
Browse files Browse the repository at this point in the history
[Doc] Add a link to Clipboard List Field third-party package
  • Loading branch information
fzaninotto authored Apr 16, 2020
2 parents 21e35ff + eedf096 commit 1ed1b61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/Ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ title: "Ecosystem"
- [User Interface](#user-interface)
- [Miscellaneous](#miscellaneous)

## Inputs and Fields
## Fields

See the [Field](./Fields.md#third-party-components) page.

## Inputs

See the [Input](./Inputs.md#third-party-components) page.

Expand Down
10 changes: 9 additions & 1 deletion docs/Fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const TagsField = ({ record }) => (
))}
</ul>
)
TagsField.defaultProps = {
TagsField.defaultProps = {
addLabel: true
};
```
Expand Down Expand Up @@ -894,6 +894,14 @@ PriceField.defaultProps = {
```
{% endraw %}


## Third-Party Components

You can find components for react-admin in third-party repositories.

- [OoDeLally/react-admin-clipboard-list-field](https://github.com/OoDeLally/react-admin-clipboard-list-field): a quick and customizable copy-to-clipboard field.


## Writing Your Own Field Component

If you don't find what you need in the list above, you can write your own Field component. It must be a regular React component, accepting not only a `source` attribute, but also a `record` attribute. React-admin will inject the `record` based on the API response data at render time. The field component only needs to find the `source` in the `record` and display it.
Expand Down

0 comments on commit 1ed1b61

Please sign in to comment.