jQuery plugin offering an simple interface to create complex queries.
$ bower install jQuery-QueryBuilder$ npm install jQuery-QueryBuilderjQuery-QueryBuilder is available on jsDelivr.
- jQuery >= 1.10
- Bootstrap >= 3.1 (CSS only)
- jQuery.extendext
- doT.js >= 1.0.3
- MomentJS (optional, for Date/Time validation)
- Other Bootstrap/jQuery plugins used by plugins
($.extendext and doT.js are directly included in the standalone file)
- Internet Explorer >= 9
- All other recent browsers
- NodeJS + NPM:
apt-get install nodejs-legacy npm - Grunt CLI:
npm install -g grunt-cli - Bower:
npm install -g bower
Install Node and Bower dependencies npm install & bower install then run grunt in the root directory to generate production files inside dist.
You can choose which plugins to include with --plugins :
# include "sql-support" and "mongodb-support" plugins
grunt --plugins=sql-support,mongodb-support
# disable all plugins
grunt --plugins=falseAll plugins are included by default.
You can also include language files with --languages :
# include French & Italian translation
grunt --languages=fr,itgrunt testto run jshint/jscs/scsslint and the QUnit test suite.grunt serveto open the example page with automatic build and livereload.grunt docto generate the documentation.
In case docker is available following commands can be used to build.
docker build . -t querybuilderto create the base image (needs to be called only once or on package/bower.json changes)docker run --rm -iv$PWD/dist:/opt/querybuilder/dist -v$PWD/src:/opt/querybuilder/src querybuilderto build the
Its possible to just add explained options to the end of the docker run command.
This library is available under the MIT license.
