Reputation: 524
I'm using Tablesorter 2.9.1 with the Pager plugin. Everything works as it should.
I'd like to filter rows via a select menu according to classes applied to cells. For example, if a user selects 'show only blue widgets, all rows except for rows with a cell with class="blue" will be displayed.
Is this already available in any available plugins/widgets?
Upvotes: 1
Views: 966
Reputation: 86403
If I am understanding your question, maybe you want to use the filter-onlyAvail
class name for a column?
Check out this demo, specifically the "Discount" column which has that class name applied (see the accordion pane):
<th class="filter-select filter-onlyAvail">Discount</th>
So, when a filter is selected in the first column, like Aaron
, the "Discount" column will only show the available choices in its dropdown.
This option was added in version 2.10.1, so you will have to update the plugin.
Upvotes: 1