Can I pass array indexes to columns search
Can I pass array indexes to columns search
I have a table with 5 columns. I want to allow a global search on the first three columns, which works fine if I make those columns "searchable". The last two columns, I don't want to allow a global search (input box), but I do want the user search/filter these last two columns based on a dropdown option. So, to filter/search the last two columns, they must be "searchable" as well...but I don't want the global search to pick up and search those column values. My global search is easy:
userTable.search(this.value).draw();
I tried to do this,but it doesn't work:
userTable.columns([3,4]).search(this.value).draw();
Any ideas on how to handle search on first three columns with a single global input, and dropdown filtering for the last two?