react-admin-import-csv | A csv file import button for react-admin | Frontend Framework library
kandi X-RAY | react-admin-import-csv Summary
kandi X-RAY | react-admin-import-csv Summary
A csv file import button for react-admin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-admin-import-csv
react-admin-import-csv Key Features
react-admin-import-csv Examples and Code Snippets
Community Discussions
Trending Discussions on react-admin-import-csv
QUESTION
I want add an import button for my react admin application.
This import will create records related to another record. For instance, I have a list of contracts that belong to a company.
I saw this repo: https://github.com/benwinding/react-admin-import-csv
And I was wondering if there was something similar for a referenceManyField.
...ANSWER
Answered 2021-Mar-24 at 14:39I found a hacky solution for this in case anyone is interested.
Instead of using a ReferenceManyField I used a List inside a Show component.
To be able to do this I had to override the props of the list to specify the resource that I wanted to reference.
I also had to pass the show item id as a prop of the list component and filter the list by the id.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-admin-import-csv
cd react-admin-import-csv
yarn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page