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

Prevent input field from loading in specific column #829

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello there,

I took a look at the basic 0 configuration example table and wondered if it is possible to either exclude certain columns from having an input field or if it is possible to turn it invisible by other means. I can make the filed invisible using "style="visibility: collapse;"" on the parent element via the dev console, but since the element has no class, I am not able to make the change persistent. Does anyone know if there is a fix for my problem?

cjohnsonuk commented 2 years ago

You can either use a filter type of none as demonstrated here: https://www.tablefilter.com/filter-types.html to turn off the column filter for that column

Or you can hide the column visibility plugin as demonstrated here https://www.tablefilter.com/columns-visibility.html to hide the columns you don't want to see

HTH