mistic100 / mistic100/jQuery-QueryBuilder
Add rule only inside group
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 544
- PR merge metrics
- No merged PRs in 30d
Description
Hello.
I set the parameter allow_groups: 1, that is, I need only first level groups.
Now I have a little problem. I need to make sure that when you click on the "Add Rule" button, a new rule is added only to the end of your group. Now a new rule is added after the entire list, where groups and rules are mixed.
here is a picture
Also, it is necessary that the new group is always added to the end of the general list.
How can i do this?
Thank!
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
No file or test is named. Start by tracing the Add Rule button and group-creation flow in the jQuery QueryBuilder code, then inspect how allow_groups limits nesting and how items are ordered. Done means new rules are appended within their group and new groups are appended to the overall list, with tests covering both behaviors.
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