Hover over the thick grey bar under the header to reveal the filter row.
For more information like revision history of this theme & why there is a button to enable/disable the zebra widget, please see the Bootstrap v3.x demo.
diff --git a/docs/example-widget-bootstrap-theme.html b/docs/example-widget-bootstrap-theme.html
index 0d037312..c473c5b4 100644
--- a/docs/example-widget-bootstrap-theme.html
+++ b/docs/example-widget-bootstrap-theme.html
@@ -63,13 +63,16 @@
// widget code contained in the jquery.tablesorter.widgets.js file
// use the zebra stripe widget if you plan on hiding any rows (filter widget)
- widgets : [ "uitheme", "filter", "zebra" ],
+ widgets : [ "uitheme", "filter", "columns", "zebra" ],
widgetOptions : {
// using the default zebra striping class name, so it actually isn't included in the theme variable above
// this is ONLY needed for bootstrap theming if you are using the filter widget, because rows are hidden
zebra : ["even", "odd"],
+ // class names added to columns when sorted
+ columns: [ "primary", "secondary", "tertiary" ],
+
// reset filters button
filter_reset : ".reset",
@@ -153,7 +156,8 @@
NOTE!
-
New!In tablesorter v2.11+, The bootstrap theme now works with Bootstrap 3 and older versions.
+
In v2.28.4, added support for the column widget.
+
In tablesorter v2.11+, The bootstrap theme now works with Bootstrap 3 and older versions.
Note the changes to the sorting icons in the $.tablesorter.themes.bootstrap defaults below.
Just use the appropriate icon class name (icon-{name} for Bootstrap v2, and glyphicon glyphicon-{name} for Bootstrap v3.
@@ -180,8 +184,8 @@
This demo shows how to get around an issue with the filter widget:
The zebra widget button below was added to show that when bootstrap's "table-striped" class is applied, the css defined zebra striping will not apply correctly because table rows are hidden but still accounted for by the css nth-child() selector.
-
To better understand this issue, disable the zebra widget (using the toggle button). Now in the "Calculus" column.
-
Try other filter searches with the zebra widget disabled, like in the "Sex" column.
+
To better understand this issue, disable the zebra widget (using the toggle button). Now in the "Calculus" column.
+
Try other filter searches with the zebra widget disabled, like in the "Sex" column.
To solve this issue, just enable the zebra widget and the "even" and "odd" row class names will should over-ride the nth-child() styling. NOTE! This doesn't seem to work in the latest Bootstrap version, so you'll have to remove the "table-striped" class completely from the table.
The only down side is that for custom bootstrap themes, you'll need to edit the "theme.bootstrap.css" file for bootstrap.