mistic100 / mistic100/jQuery-QueryBuilder

Intercept only change event triggered by the GUI

Open
#726 4 comments 0 reactions 1 assignee View on GitHub

@mistic100 is already working on this.

Since Sep 20, 2018.

feature
Dominant language
JavaScript
Stars
1.7k
Forks
544
PR merge metrics
No merged PRs in 30d

Description

Hi,

I use JQuery query builder in a angular child component and I meet many troubles with events.

When I initialize the query builder before displaying on my web page, I get the JSON data which contains the definition of the rule (condition, filters, operator...). That is not the problem because everything works fine so far.

The problem is I want to intercept all modification performed by the user via the GUI and only these modifcations and not the modification brought by the set_rule method.

  1. Do you know a mean so that setting rule with JSON (set_rule method) do not trigger afterCreateRuleInput event?
  2. Does it exist a property on event handler parameters which allows knowing change origin (rule initialization via set_rule or user via the GUI)?
  3. How to retrieve the new JSON data in the event Handler?

Regards

Fabrice

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.