/SearchBuilder

SearchBuilder extension for DataTables

Primary LanguageTypeScriptOtherNOASSERTION

SearchBuilder

SearchBuilder adds user defined complex search to the DataTable with the capability to search the DataTable by creating groups and conditions. This offers more advanced search controls than is currently offered by SearchPanes or the core DataTables functionality. It is possible to set logic types for groups and apply a variety of conditions.

Installation

The SearchBuilder extension is available on the DataTables CDN and in the download builder. See the documentation for full details.

NPM

You can also install it from NPM

If you prefer to use a package manager such as NPM or Bower, distribution repositories are available with software built from this repository under the name `datatables.net-searchpanes. Styling packages for Bootstrap, Foundation and other styling libraries are also available by adding a suffix to the package name.

Please see the DataTables NPM installation page for further information. The DataTables installation manual also has details on how to use package managers with DataTables.

Basic Usage

SearchBuilder is initialised by placing a Q into the DataTables dom option. Further options can be specified using this option as an object - see the documentation for details. For example:

$(document).ready(function() {
    $('#example').DataTable( {
        dom: 'Qfrtip'
    });
});

Documentation / Support

GitHub

If you fancy getting involved with the development of SearchBuilder and help make it better, please refer to its GitHub repo