Comments (5)
Gotcha, you want an autocomplete select box. Yes, it's very necessary, but it's not very straight forward since Material UI doesn't provide one out of the box.
from react-admin.
In the blog example, you can see how the Comments list offers a filter by post at https://github.com/marmelab/admin-on-rest/blob/7e4409ddf9a7c2d912d7aaaafee5b9b84b9068be/example/comments.js#L8-L10.
Is there a bug when you try to reproduce that?
By the way, <ReferenceInput>
is now documented.
from react-admin.
I've seen that sample, but what I would like to achieve is to filter the item present in the reference input, not the filtering my list like in the sample.
If we take the post/comment example, what I would like to do is to filter the list of post when editing or creating the comment to only show post that match a predefined criteria. I'm not sure it would make sense in the example, but let's say we have thousand of post, I would like to only allow creating comment on post that have been published in the last week to limit my drop down to something manageable.
Right now, the only way that I could do it is by creating a new resources in my api that will do that, I don't think I can leverage the filter mechanism outside the list resource "pages"
Is that make more sense?
from react-admin.
Kind of, In my specific use case, when editing my item, the dropdown is always a subset of the entire set of reference resource. I'm assuming that getting the Autocomplete Reference Input would allow me to "hardcode" my search queries without any user input.
from react-admin.
Fixed by #199
from react-admin.
Related Issues (20)
- Change title property type in core display components <Edit>, <Show>, <View> HOT 1
- Standalone version of the Store for a dual-store strategy HOT 3
- Unable to clear default value in DateTimeInput component HOT 3
- Documented theme level defaultProps overrides do not work for react admin components HOT 4
- Reference Array selected item from a filter query vanishes immediately after selection. HOT 2
- Infinite re-rendering using disabled AutocompleteArrayInput in a ReferenceArrayInput HOT 6
- AutocompleteInput don't keep focus with mouse HOT 5
- Documentation update in sample. HOT 3
- NumberInput's `onBlur` prop does not provide an event object HOT 2
- Add ability to customize query string format for lists HOT 5
- i want to show the received gmail in react js app
- AutoComplete choice listing issue when using useChoicesContext HOT 1
- react admin error with Menu.Item missing properties HOT 6
- storeKey prop is not passed to useRecordSelection hook inside useListController HOT 5
- useEditContext returns null for both values HOT 5
- Infinite loop occurs in page rendering when perPage is set to a negative number in List Component HOT 2
- Codemods are not included in ra-core v5
- Duplicate entries in documentation search HOT 2
- `<PasswordInput/>` or `<TextInput/>` has corrupted `validate` prop, if field is handled with `disabled` prop HOT 4
- Auth provider login Promise rejection with "message" doesn't trigger notification message HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-admin.