get data result of the search
get data result of the search
Genka
Posts: 2Questions: 1Answers: 0
Hi
I m using search API and i would like to be able to get the data in my JS code which are displayed as the results of my search.
Is there a simple way to do that ?
Thanks;
This discussion has been closed.
Answers
I have found. Sorry for having asked for nothing.
For those who are interested, the rows().data() method is by default returning all the rows of the table, even if you have done a search or change the page.
This behaviour can me modify by passing an array of options to the method rows().
This array is described there -> https://datatables.net/reference/type/selector-modifier