React QueryBuilder integration
See original GitHub issueHi, i’d like to integrate the querybuilder with react but i’d like to use my own components for the fields such as a Calendar for date pick and my own select component, i started yesterday with the Calendar but i don’t know where to set the value…
QueryBuilder.define("datepicker", function (options) {
this.on("getRuleInput.filter", function (h, rule, name) {
let {plugin} = rule.filter;
if (plugin === "datepicker")
ReactDOM.render(<Cx store={that.props.instance.store}>
<DateField value:bind="$date"/>
</Cx>, rule.$el[0].lastElementChild)
});
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Getting started with React QueryBuilder component - Syncfusion
Checkout and learn about getting started with React QueryBuilder component of Syncfusion Essential JS 2, and more details.
Read more >A QueryBuilder component for React - GitHub
React Query Builder is a fully customizable query builder component for React, along with a collection of utility functions for importing from, and...
Read more >react-querybuilder - npm
Start using react-querybuilder in your project by running `npm i ... There are 10 other projects in the npm registry using react-querybuilder.
Read more >React Query Builder - The Ultimate Querying Interface -- newline
Below, I'm going to show you how to integrate the React Query Builder library into your application to gain insights into your data....
Read more >Getting started - React Query Builder
For an extended tutorial on configuration and customization of react-querybuilder , including information about integrating it with a backend API and advanced ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In your “getRuleInput” handler, set
h.value = '';
Thank you very much for your answer @mistic100 i am aware about the React thing you’re saying but it’s required to integrate this with react The problem that i’m having right now is that the QueryBuilder is not showing the rules when i set the value on it and is working with all rules but DateTime rules…
Idk if i need to call another function when changing the values of this rule or what i have to do, i’d like to know how you access the QueryBuilder values like if it is a Javascript object or a function that gets executed on the
QueryBuilder('getRules')