You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
koalyptus 7afe45f1e6
Merge pull request #787 from koalyptus/dependabot/npm_and_yarn/codecov-3.7.1
3 years ago
.github/ISSUE_TEMPLATE Add support template 4 years ago
dist prepare dist 3 years ago
libs Added selection grid demo, removed old demos 8 years ago
src 769 refine empty nonempty operators logic 3 years ago
static introduce adjust_container_left_position option in help_instructions configuration 3 years ago
test 769 refine empty nonempty operators logic 3 years ago
.editorconfig Renamed long custom event names, added hashchange event 7 years ago
.esdoc.json Remove provate members from auto-generated documentation 5 years ago
.eslintrc 769 refine empty nonempty operators logic 3 years ago
.gitignore Added missing source maps 6 years ago
.travis.yml try name property in travis releases provider 5 years ago add donate badge 5 years ago
Gruntfile.js Enhance filter options sorting based on column data type 4 years ago
LICENSE Fixed clear all filters functionality when linked filters is on 7 years ago update pr template 5 years ago prepare dist + miscellaneous fixes 3 years ago
index.js Added index.js 6 years ago
package-lock.json prepare dist 3 years ago
package.json prepare dist 3 years ago
webpack.config.js prepare dist + miscellaneous fixes 3 years ago convert var to const in webpack configs 5 years ago
webpack.test.config.js fix CleanWebpackPlugin webpack plugin upgrade 4 years ago

Build Status Document codecov Greenkeeper badge Donate


A Javascript library making HTML tables filterable

TableFilter is a modernised version of the HTML Table Filter generator javascript plugin. This library adds to any html table a "filter by column" feature that enables users to filter and limit the data displayed within a long table. By default, the script automatically adds a filter grid bar at the top of the desired table.


  • Convert a regular HTML table into an advanced grid component providing:
    • Advanced columns filtering model
    • Sorting and pagination capabilities
    • Complete selection model (ezEditTable extension)
    • Extended keyboard navigation (ezEditTable extension)
    • Inline cell or row editing (ezEditTable extension)
    • Row insertion or deleting (ezEditTable extension)
    • And even more features...
  • Attach to an existing HTML table
  • Integration with any server-side technology as this is a pure client-side solution
  • Exhaustive documentation and powerful API

Getting started

  • Clone the repo using Git:
git clone
  • You can download this repository.

  • TableFilter is available on npm repository, you can install it from the command line using the following command:

npm install tablefilter --save-dev
  • or get the future features from the next release channel:
npm install tablefilter@next --save-dev


Using modules

Require TableFilter:

// ES2015 modules
import TableFilter from 'tablefilter';

// CommonJS or AMD modules
var TableFilter = require('tablefilter');

Using distribution scripts

If you are not using a module system, you can reference the distribution scripts directly in your html pages:

<script src="path_to/node_modules/tablefilter/dist/tablefilter/tablefilter.js"></script>

Placing manually the distribution scripts in your project

Copy the tablefilter directory under dist and place it at desired location in your project. Then include the main js file in your page:

<script src="path/to/my/scripts/tablefilter/tablefilter.js"></script>


Place the following snippet just under the HTML table and always define a base_path property in the configuration object to reflect the path to the script

var tf = new TableFilter(document.querySelector('.my-table'), {
    base_path: 'path/to/my/scripts/tablefilter/'

If the base_path property is not specified, it will default to /tablefilter directory:

 |— tablefilter


This project requires node.js and Grunt to be installed:

  • install node.js v8.9.4 or higher
  • install Grunt from the command line using npm (comes with node.js):
npm install -g grunt-cli

Once Grunt is sorted out you can follow the instructions below. Start by installing any dependencies.

npm install


npm run dev

command to launch a build / watch cycle and start the local sever on port 8080.


npm run build

command to generate a production build.


npm run dist

command will create a production build, run the tests and finally generate the demos:

To run all the tests and generate the coverage report:

npm test

or to run specific test(s):

grunt test-only:test.html
grunt test-only:test.html,test-sort.html

to view the coverage report(s), open the index.html under the report/coverage folder or online.


Check out the online examples or generate the demos locally:

npm run build:demos

then run the local webserver:

npm start

then pick a demo from:



Find exhaustive documentation on the configuration options in the WIKI section.

Autogenerated documentation of the ES6 modules is available on the website: docs

If you previously used the HTML Table Filter Generator plugin, verify the configuration options you are using are still supported: Obsolete

Run this task to generate the documentation in the docs/docs directory:

npm run esdoc