I am building a search query builder with react-querybuilder and want to fetch the values of certain rules from an API. I also want the values field to be a filter and not just a dropdown, where users can input their filter string and results will appear in the dropdown. If we can make the results as multi-select then it would be better like shown in the image added. (https://i.stack.imgur.com/8tMHF.png) I researched on the react-querybuilder and found that it doesn't have the functionality that I'm trying to make. If anyone from the community can help, please reach out. Thanks
How can we implement autocomplete with API and multi-select in react-querybuilder?
298 views Asked by Aditya Pol At
1
There are 1 answers
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in QUERY-BUILDER
- Why isn't "nth-of-type" working for my blog query loop?
- Order By Clause Overridden in Laravel Union Query Construction
- Troubleshooting @ParamConverter Issue in Symfony
- Doctrine - How to show a Collection property and choose which field to get
- Laravel tinker not working with error "resource is not a valid stream resource"
- Query Builder retrieving users by using Chunk method
- How to add additional fields in React Query Builder?
- Custom Field in React Query Builder
- Laravel Eloquent Query group by user and order by Max(date)
- Laravel Eloquent - Query where secondValue if no results with initialValue
- TypeORM "ERROR [ExceptionsHandler] for SELECT DISTINCT, ORDER BY expressions must appear in select list" when ordering by alias and using take & skip
- How can we implement autocomplete with API and multi-select in react-querybuilder?
- dentification Variable as used in join path expression but was not defined before
- Is there a fastest way to hydrate my table
- PostgreSQL self join not working on TypeORM
Related Questions in REACT-QUERY
- React Query infinite scroll pagination resets to first page
- The result of the invalidateQueries in react-query isn't as expected
- How to build a reactive application using React Query and Spring Webflux
- tanstack react-query ENOENT error when uninstalling v5 and installing v4
- How to type nextjs endpoint with TypeScript?
- Dev tool for Next.js cache on the client?
- Access Cookies in TRPC fetch handler
- onSuccess and onError are not working in newest version of React-Query?
- Handling relationships with React Query
- What next.js does behind the scenes when you call server actions inside client components?
- react-query useMutation onerror
- How to test conditional rendering component with useQuery result data?
- Create a helper function to call react-query mutation
- How to keep previous successfully fetched data when using useQuery
- Pausing the refetching of react-query using the default options without using reset
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Maintainer of React Query Builder here. You can achieve this with a custom value editor. The best documentation I have on custom components right now is here. That walks you through creating a custom value editor for dates using
react-datepicker, but the concept would be the same for any other React library.There are no built-in data fetching features in RQB, so you'd need to build that on your own or use a library, but I would recommend
react-selectfor its multiselect and async features.The RQB home page actually has a multi-select example using
react-select. The code for the component itself is here (simplified for brevity below), and usage is here.Notes:
selectOptionsis an array of type{ value: string; label: string; }[].To use the component, assign it to
valueEditorin thecontrolElementsprop.Feel free to file issues/discussions on GitHub or join the Discord chat if you have other questions about React Query Builder.