How to retrieve data associated with current search?
How to retrieve data associated with current search?
louking
Posts: 259Questions: 52Answers: 0
I am using yadcf to filter a table, which I believe uses DataTables.search() to do the filtering.
When the table is drawn after yadcf filtering ( on ( 'draw.dt', ... ) ) I want to pull the filtered data out of the table for further processing.
I see data() and rows().data() both return the full unfiltered dataset.
Is there a way to retrieve the filtered dataset?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes, with the
selector-modifier
for therows()
method. e.g.:Allan
edit - Linked to the wrong type.
Thanks for pointing me to
selector-modifier
. I think you must meanDoh - yes indeed I did!
Allan