How can I search occurences of a word without filtering rows ?

How can I search occurences of a word without filtering rows ?

ln38ln38 Posts: 5Questions: 3Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Hi !
I want to add a 'Search' function to my datatable. But I don't want to filter the rows, I'd like to implement it like in text document: occurences are highlighted in the table and each time the user hits the 'enter' key, the focus goes to the next occurence of the searched word.
How can I do ?
Thanks!

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    You could have a look at this plug-in or my original one.

    It will still remove the rows from the table, but it will highlight the matches.

    If you don't want it to remove the rows at all, using mark.js (or whatever highlighter you want) without applying the DataTables filtering.

    Allan

  • ln38ln38 Posts: 5Questions: 3Answers: 0

    Ok thanks Allan I'll have a look at it !

Sign In or Register to comment.