1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-22 23:46:40 +02:00
Go to file
2016-05-15 18:53:46 +10:00
assets Generated by grunt gh-pages 2016-05-01 15:19:54 +10:00
docs publish Docs to gh-pages (auto) 2016-05-15 03:55:06 +00:00
tablefilter Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
.gitignore Added .gitignore 2015-09-20 14:43:02 +10:00
0-configuration.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
advanced-grid-editable.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
advanced-grid-selection.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
alphabetical-pager.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
alternating-rows.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
auto-filter.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
basic-usage.html Generated by grunt gh-pages 2015-11-21 19:41:22 +11:00
case-sensitive.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
column-calculations.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
column-widths.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
columns-visibility.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
conditional-cell-formatting.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
custom-checkbox-selection.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
custom-filter-options.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
custom-filtering.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
data-types.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
deep-linking.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
exact-match-by-column.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
exact-match.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
examples.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
external-filter-operators.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
external-filters.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
external-toolbar.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
extract-data-apis.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
filter-images.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
filter-types.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
filters-visibility-external-toggle.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
filters-visibility.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
grid-layout-custom-css.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
grid-layout.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
grouped-headers.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
highlight-keywords.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
index.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
LICENSE publish README to gh-pages (auto) 2015-10-24 11:19:23 +00:00
linked-filters-greyed-out-options.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
linked-filters.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
load-filters-on-demand.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
no-filters.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
no-headers.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
no-results-message.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
paging.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
persistence.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
popup-filters.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
README.md publish README to gh-pages (auto) 2016-05-12 11:50:39 +00:00
responsive-grid-layout.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
responsive.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
rows-always-visible.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
setup-requirejs.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
setup-systemjs.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
single-filter.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
sort-columns-external-command.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
sort-custom-type.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
sort.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
starter.html publish TableFilter to gh-pages (auto) 2015-12-25 02:16:29 +00:00
theme-roller.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
toggle-features.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00
watermark.html Generated by grunt gh-pages 2016-05-15 18:53:46 +10:00

TableFilter Build Status

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.

Features

  • Convert a regular HTML table into an advanced grid component providing:
    • Advanced columns filtering model
    • Sorting and pagination facilities
    • 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 poweful API

Getting started

  • Clone the repo using Git:
git clone --bare https://github.com/koalyptus/TableFilter.git
  • You can download this repository.

  • Alternatively, install TableFilter files in your npm enabled project using:

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

Setup

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

<script>
var tf = new TableFilter(document.querySelector('.my-table'), {
    base_path: 'path/to/my/scripts/tablefilter/'
});
tf.init();
</script>

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

your-page.html
 |— tablefilter

Development

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

  • install node.js
  • 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

Use the Grunt dev task to launch a build / watch cycle and start the local sever on port 8080:

grunt dev

Use the build task to generate a production build:

grunt build

The default Grunt task will create a production build, run the tests and finally generate the demos:

grunt

To run all the tests:

grunt test

and to run specific test(s):

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

Demos

Check out the online examples or generate the demos locally:

grunt build-demos

then run the local webserver:

grunt server

then pick a demo from:

http://localhost:8080/demos/

Documentation

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:

grunt esdoc

Support

  • GitHub for reporting bugs and feature requests.

License

MIT