Oh, so you want and AND search not an OR search. Thats a bit more complex. You will need something like this:
//join array into string with regex or (|) var val = data.map(function( n ) { return ["(?=.*"+n+")"]; }); val = val.join("");
Search string will look like this: (?=.*tag 3)(?=.*tag 4)(?=.*tag 9).
(?=.*tag 3)(?=.*tag 4)(?=.*tag 9)
https://live.datatables.net/duyuzaqi/1/edit
Kevin
Ouaw ! Perfect ! Thanks again and again !
Is a Searchpane could have AND / OR option ? Edit : I think with combiner 'and'
Yes, try columns.searchPanes.combiner.
columns.searchPanes.combiner
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
Oh, so you want and AND search not an OR search. Thats a bit more complex. You will need something like this:
Search string will look like this:
(?=.*tag 3)(?=.*tag 4)(?=.*tag 9)
.https://live.datatables.net/duyuzaqi/1/edit
Kevin
Ouaw ! Perfect !
Thanks again and again !
Is a Searchpane could have AND / OR option ?
Edit : I think with combiner 'and'
Yes, try
columns.searchPanes.combiner
.Kevin