get data result of the search

get data result of the search

GenkaGenka Posts: 2Questions: 1Answers: 0
edited October 2016 in Free community support

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;

Answers

  • GenkaGenka Posts: 2Questions: 1Answers: 0

    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

This discussion has been closed.