From 682d039eec985893b60a115dd5d36ecebeea88ce Mon Sep 17 00:00:00 2001 From: Pascal Heitz Date: Tue, 7 Apr 2020 18:50:01 +0200 Subject: [PATCH 1/2] Added react-admin-clipboard-list-field to Fields.md --- docs/Fields.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/Fields.md b/docs/Fields.md index 4aaf1d83524..c870952844e 100644 --- a/docs/Fields.md +++ b/docs/Fields.md @@ -152,7 +152,7 @@ const TagsField = ({ record }) => ( ))} ) -TagsField.defaultProps = { +TagsField.defaultProps = { addLabel: true }; ``` @@ -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. From eedf0969743b50d0794a27f23cc52705b441d7b0 Mon Sep 17 00:00:00 2001 From: Pascal Heitz Date: Thu, 9 Apr 2020 09:59:45 +0200 Subject: [PATCH 2/2] Ecosystem doc link to Fields --- docs/Ecosystem.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/Ecosystem.md b/docs/Ecosystem.md index 5d80d5523c0..eb6add68336 100644 --- a/docs/Ecosystem.md +++ b/docs/Ecosystem.md @@ -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.