Skip to content

jQuery QueryBuilder plugin. Allows the application of different jQuery plugins to different operators per filter.

License

Notifications You must be signed in to change notification settings

aTaQu/plugins4ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

plugins4ops

jQuery QueryBuilder plugin. Allows the application of different jQuery plugins to different operators per filter.

Initialize the plugin

$('#builder').queryBuilder({
        plugins: {'plugins4ops': {}},
        ...

Example configuration of the filter

{
            id: 'category',
            label: 'Category',
            type: 'string',
            operators: ['equal', 'not_equal', 'between','in', 'not_in'],
            plugins: [
                {
                    //If no operators are specified the plugin configuration will be applied to all operators
                    plugin: 'pluginName',
                    config: {
                        data: ["abc", "xyz", "qwe", "rty"],
                        multiple: true,
                        tags: true
                    }
                },{
                    operators: ['equal', 'not_equal', 'between'],
                    plugin: 'pluginName',
                    config: {
                        data: ["abc", "xyz", "qwe", "rty"]
                    }
                }
            ]
        }

About

jQuery QueryBuilder plugin. Allows the application of different jQuery plugins to different operators per filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published