question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React QueryBuilder integration

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mistic100commented, Dec 20, 2017

In your “getRuleInput” handler, set h.value = '';

0reactions
yrodrigezcommented, Dec 27, 2017

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')

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found