Internal filter widget as opposed to an external one as is outlined in this example:
http://mottie.github.io/tablesorter/beta-testing/example-external-filters-using-select2.html
I am looking for a behavior that is similar to the first two external filter boxes with placeholders: AlphaNumeric and AlphaNumeric Tag but I want that behavior inside of the table. Here is what I tried to do:
<th class="filter-select2" data-placeholder="select something">
This does not work, but if I change "filter-select2"
to "filter-select"
, then it does.
I am looking for a way to hack/customize the existing tablesorter behavior to allow for using select2 internally. I do not know JS and the library well enough to attempt this on my own.
Here is JavaScript snippet that I use to initialize the tablesorter library.
$('#table1').tablesorter({
theme : 'ice',
cssInfoBlock : 'tablesorter-no-sort',
widgets: ['zebra', 'stickyHeaders', 'filter']
});