Add slider and others filter on tablesorter
This commit is contained in:
mespeche
2013-09-02 16:39:57 +02:00
parent f48de82e96
commit 71d557020f
3 changed files with 862 additions and 14 deletions

View File

@@ -9,10 +9,26 @@
// -- Init tablesorter --
if($('.tablesorter').length){
$('.tablesorter').tablesorter({
widgets: ["filter"],
$('.tablesorter').tablesorter({
widgets: ["filter", "stickyHeaders"],
widthFixed : false,
widgetOptions : {
filter_cssFilter : 'input-medium',
filter_formatter : {
3 : function($cell, indx){
return $.tablesorter.filterFormatter.uiSlider( $cell, indx, {
animate : true,
value: 1,
min: 1,
max: 50,
delayed: true,
valueToHeader: true,
exactMatch: false,
allText: 'all',
compare: '>='
});
}
}
}
});
}