Looking at this example:
http://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-1.html
How can I set the From/To filter (with two text input fields) like in the last Date column but in a numbers only column, like Total column in that example above?
As in, I don't want the slider in the Total column, I want the two From/To fields instead. Is that possible? And how? Which plugin/widget do I need to use and with what parameters?
Thanks.
You will end up writing your own custom filter formatter to add two numeric input fields; it isn't that straight-forward, but most of the code from the jQuery UI datepicker (2 inputs) formatter can be copied & modified to suit your needs.
In a future update, I plan to replace the
filter_formatter
functions with an option that only needs to return a query value for a column. This change will enable developers to build their own custom filter row with a custom UI and not be limited by the code available for thefilter_formatter
.Ok, here you go (demo)