JSPM

@palustris/ra-autocompletearrayinput

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q32966F
  • License MIT

<AutocompleteArrayInput /> component for react-admin

Package Exports

  • @palustris/ra-autocompletearrayinput

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@palustris/ra-autocompletearrayinput) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.