nested-criteria-builder

This package adds support for creating nested criteria to jQuery-QueryBuilder. And completely based on it. > I tried to inherit and override some methods, but there are too many small changes in many files. > Thanks to Damien Sorel for your powerful code.

Usage no npm install needed!

<script type="module">
  import nestedCriteriaBuilder from 'https://cdn.skypack.dev/nested-criteria-builder';
</script>

README

jQuery Nested Criteria Builder

This package adds support for creating nested criteria to jQuery-QueryBuilder. And completely based on it. I tried to inherit and override some methods, but there are too many small changes in many files. Thanks to Damien Sorel for your powerful code.

Screenshot

on screen used commercial design Metronic

Important note

Only works with the content type "application/x-www-form-urlencoded" and the GET method. Query parameters are encoded using $.param and decoded using $.deparam. The default decoded parameters example:

{
    "filter": [
        [
            "or",
            ["user.updatedBy.name", "like", "administrator"],
            ["user.updatedBy.name", "notLike", "nimda"],
            [
                ["user.id", "isNotNull"],
                ["user.id", "between", 1, 2]
            ]
        ],
        ["user.id", "in", [ 1, 2, 3 ]]
    ]
}

In this case, the form fields will be automatically restored. To override this behavior, edit src/ormbackend/adapter.js.

Dependencies

Prerequisites

Install

npm install

Setting up

You may wish to override src/ormbackend/metadata.js to provide the correct settings for fetching and converting metadata from your server. For embedding in your design, look and modify src/template.js.

Build

npm run dev

License

This library is available under the MIT license.