Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vhf/jquery-table-filter
jquery plugin to filter HTML table rows
https://github.com/vhf/jquery-table-filter
Last synced: 13 days ago
JSON representation
jquery plugin to filter HTML table rows
- Host: GitHub
- URL: https://github.com/vhf/jquery-table-filter
- Owner: vhf
- License: mit
- Created: 2012-10-21T13:32:49.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-21T13:36:50.000Z (about 12 years ago)
- Last Synced: 2024-10-16T19:24:22.736Z (28 days ago)
- Language: JavaScript
- Homepage: http://efeamadasun.github.com/jquery-table-filter/
- Size: 161 KB
- Stars: 1
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGE LOG.rdoc
- License: LICENSE
Awesome Lists containing this project
README
##jquery.table_filter.js
version: 0.1.0 (Oct. 18, 2012)####What's this?
This is a jQuery plugin that uses input from a textbox to filter rows in HTML tables. its fast and
lightweight (the minified version is just 872 bytes).####Usage:
Include `jquery.table_filter.js` or `jquery.table_filter.min.js` in your HTML file.
This plugin depends on the jQuery library, so you should have that as well.
```html
```You can then call the plugin using the CSS Selector for your Table and Text input.
```html
...
``````javascript
//basic initialisation
$(function(){
$(".f_txt").table_filter({'table':'.f_tbl'});
});
```
```javascript
//full initialisation
$(function(){
$(".f_txt").table_filter({
'table':'.f_tbl',
'filter_inverse':false,
'enable_space':false
});
});
```####Settings:
`table` (CSS DOM selector) - No default
+ Table with the rows you want to filter. This setting has no default value, and is required.`filter_inverse` (boolean) - default: False
+ `True` - filters out rows that match the filter text
+ `False` - filters out rows that do not match the filter text`enable_space` (boolean) - default: False
+ `True` - it uses space in filter text as delimiters. e.g. if filter text = "good boy", it will search rows for "good" and "boy" seperately
+ `False` - it will not use space as a delimiter. e.g. "good boy" will be treated as one word.####License
Licensed under the MIT: http://www.opensource.org/licenses/mit-license.php
Copyright (c) 2012 by [Efe Amadasun]('http://efeamadasun.com')