fast table filter - Free Download Minimal & Fast Table Filter Plugin - jQuery TableFilter

Free Download Minimal & Fast Table Filter Plugin – jQuery TableFilter

Posted on

This time I will share jQuery Plugin and tutorial about Minimal & Fast Table Filter Plugin – jQuery TableFilter, hope it will help you in programming stack.

fast table filter - Free Download Minimal & Fast Table Filter Plugin - jQuery TableFilter
File Size: 7.42 KB
Views Total: 855
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A really simple and blazing fast jQuery table filter plugin to filter rows of an HTML table with a regular search or text field.

How to use it:

1. Create a text field and specify the selector of the target HTML table in the data-tablefilter attribute.

1 <input type="search"
2        class="filter"
3        data-tablefilter="#table"
4        placeholder="Filter...">
01 <table id="table">
02   <tr>
03     <th>Company</th>
04     <th>Contact</th>
05     <th>Country</th>
06   </tr>
07   <tr>
08     <td>Alfreds Futterkiste</td>
09     <td>Maria Anders</td>
10     <td>Germany</td>
11   </tr>
12   <tr>
13     <td>Centro comercial Moctezuma</td>
14     <td>Francisco Chang</td>
15     <td>Mexico</td>
16   </tr>
17   <tr>
18     <td>Ernst Handel</td>
19     <td>Roland Mendel</td>
20     <td>Austria</td>
21   </tr>
22   <tr>
23     <td>Island Trading</td>
24     <td>Helen Bennett</td>
25     <td>UK</td>
26   </tr>
27   <tr>
28     <td>Laughing Bacchus Winecellars</td>
29     <td>Yoshi Tannamuri</td>
30     <td>Canada</td>
31   </tr>
32   <tr>
33     <td>Magazzini Alimentari Riuniti</td>
34     <td>Giovanni Rovelli</td>
35     <td>Italy</td>
36   </tr>
37 </table>

2. Load the TableFilter plugin’s script after you load the latest jQuery library.

1 <script src="/path/to/cdn/jquery.slim.min.js"></script>
2 <script src="/path/to/dist/jquery.tablefilter.min.js"></script>

3. Initialize the table filter plugin on the search field and done.

1 $(function () {
2   $('.filter').TableFilter();
3 });

4. Perform a function after filtering.

1 $(function () {
2   $('.filter').TableFilter({
3     afterFilter: function(){
4       alert('done');
5     }
6   });
7 });

This awesome jQuery plugin is developed by DimNS. For more Advanced Usages, please check the demo page or visit the official website.

source : jquery.net