-
Notifications
You must be signed in to change notification settings - Fork 753
Open
Description
Hi,
I absolutely love the tablesorter but I have a question/request.
I'm using external buttons to preload tablesorter data using data-filter-column and data-filter-text=.
I wonder if it's possible to either always load all rows which are empty on data-filter-column="0" or load a data-set in data-filter-column="0" that is maybe called 'all'?
This is my script:
`$('button[data-filter-column]').click(function() {
var filters = [],
config = $table[0].config,
$t = $(this),
col = $t.data('filter-column'),
txt = $t.data('filter-text') || $t.text();
filters[col === "all" ? config.columns : col] = txt;
$.tablesorter.setFilters( $table, filters );
return false;
});`
Metadata
Metadata
Assignees
Labels
No labels