mistic100 / mistic100/jQuery-QueryBuilder
Drag drop item list to build query
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 544
- PR merge metrics
- No merged PRs in 30d
Description

I'm trying to use this example, I can't understand how to update the fields and drag at the same time to a group, I believe that to do this drag and fill in the fields the list must also be part of the template / tree of "#builder" or I can clone the "#builder" and make a separate template / list and drag it from the "#builderList" clone to the "#builder", as you would do?
var builder = $('#builder')[0].queryBuilder;
var rule = builder.addRule(builder.getModel());
rule.filter = builder.getFilterById('name');
rule.operator = builder.getOperatorByType('equal'); // if you want
rule.value = 'something'; // if you want
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the example shown in the issue and compare the #builder and proposed #builderList structures. Investigate how the query builder updates fields while rules are dragged into groups; done means a list item can be dragged into #builder and its fields can be populated as demonstrated by addRule, filter, operator, and value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100