Custom search: Hide matched results
Custom search: Hide matched results
Hi. I was searching the forum but I couldn't find anything that might help me or give me some clue what to do.
I have a custom search field (placed somewhere in my layout) with couple of search modes: highlight term, show matched results and hide matched results. Switching search modes and first 2 modes I'll handle myself. For the "show matched results" mode (basically native DT's functionality) I've used this piece of code (as mentioned in documentation). [code]$resultsTable.search(searchValue).draw();[/code]
Now I have to implement hiding of matched results - for example if I enter "london" I need to hide all rows containing term "london".
Can I achieve this with a search() function somehow (maybe with some custom regex) or I have to make some new plugin for this.
Any comment or some other clue will be valuable for me. Thanks.
I have a custom search field (placed somewhere in my layout) with couple of search modes: highlight term, show matched results and hide matched results. Switching search modes and first 2 modes I'll handle myself. For the "show matched results" mode (basically native DT's functionality) I've used this piece of code (as mentioned in documentation). [code]$resultsTable.search(searchValue).draw();[/code]
Now I have to implement hiding of matched results - for example if I enter "london" I need to hide all rows containing term "london".
Can I achieve this with a search() function somehow (maybe with some custom regex) or I have to make some new plugin for this.
Any comment or some other clue will be valuable for me. Thanks.
This discussion has been closed.
Replies
Allan