https://github.com/gartner/palustris-ra-autocompletearrayinput
An enhanced <AutocompleteArrayInput> component for React-admin,
https://github.com/gartner/palustris-ra-autocompletearrayinput
react-admin react-admin-component
Last synced: about 1 year ago
JSON representation
An enhanced <AutocompleteArrayInput> component for React-admin,
- Host: GitHub
- URL: https://github.com/gartner/palustris-ra-autocompletearrayinput
- Owner: gartner
- License: mit
- Created: 2019-10-12T05:41:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T06:30:58.000Z (almost 7 years ago)
- Last Synced: 2025-06-03T07:13:27.943Z (about 1 year ago)
- Topics: react-admin, react-admin-component
- Language: JavaScript
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# palustris-ra-autocompletearrayinput
An enhanced <AutocompleteArrayInput> component for React-admin,
This is the original from React-admin, but with the ability to add new items to the resource from which suggestions are fetched.
In addition to all the props listed in the React-admin documentation, this component can be passed the prop 'dataProvider'. If this is provided, and you set the prop 'limitChoicesToValue' to false, you can type in new tags, and when pressing enter, they will be created by the dataprovider, when created, they will be inserted in the field.
####TODO:
There is a small delay when you press enter, where the entry is first cleared from the input, then an empty input-chip appears, and only then is the new tag loaded. Would be nice with some sort of placeholder that shows that the new tag is being created.