jQuery plugin offering an simple interface to create complex queries.
$ bower install jQuery-QueryBuilder
$ npm install jQuery-QueryBuilder
jQuery-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=false
All plugins are included by default.
You can also include language files with --languages
:
# include French & Italian translation
grunt --languages=fr,it
grunt test
to run jshint/jscs/scsslint and the QUnit test suite.grunt serve
to open the example page with automatic build and livereload.grunt doc
to generate the documentation.
In case docker is available following commands can be used to build.
docker build . -t querybuilder
to 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 querybuilder
to 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.