koalyptus / TableFilter

A Javascript library making HTML tables filterable and a bit more :)
https://www.tablefilter.com
MIT License
324 stars 95 forks source link

Default filter type for all columns #816

Open juamar opened 3 years ago

juamar commented 3 years ago

Hi, I was wondering if there was a way to set default filter types, for example, to checkbox. I will like in a table filters to be checkbox. Right now, as the default is input, i have to set all columns "manually" to checkbox.

thanks in advance.

netniV commented 2 years ago

https://github.com/koalyptus/TableFilter/blob/7afe45f1e6d46ef97ea20ac47bc4ee961b5d231f/src/tablefilter.js#L189

I was coming to create an issue myself for this, but it would appear you've beaten me to it. The above line of code represents the point of change, though it would need a settings change in order to handle it.

I would create a PR for this myself but I'm tied up on other coding projects right now, maybe you could give it a go @juamar ?