Custom filter option, how flexible is it?
Custom filter option, how flexible is it?
I am currently working with a table where i need quite specific filtering applied. So what i want to achieve is to split words that are in the searchbox (delimiter would be space and/or comma), and then i would compare those words with words in 'column 3'
I also want to split the records in column 3 by comma and compare each individual word so to say. This is just to explain my goal,...
My actual question is, is there a way where i can apply such a filter, by using regex or whole jquery function to do this job? I didnt find any example in the docs, so any help would be highly appreciated.
Replies
This page shows an example of using regex searches:
https://datatables.net/examples/api/regex.html
You can also create a search plugin for this:
https://datatables.net/manual/plug-ins/search
Kevin
Hi @mhwin ,
The place to look is at the filtering plugins here. There are many plugins already, so you could use one of those as a starting template.
Cheers,
Colin