Get only visible / filtered rows from the api
Get only visible / filtered rows from the api
TempleClause
Posts: 3Questions: 2Answers: 0
I searched for hours but couldn't find a solution but I'm sure there is an easy one!
I have the following code:
dataTable.api().rows().every(function () {
});
This will loop through all the rows even if they are hidden / filtered.
How can I iterate only over those rows which are actually visible?
Thanks a lot
Timothy
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Just use the selector options for
row()
-selector-modifier
.e.g.
rows( { page: 'current' } )...
.Allan
Perfect thanks.
This works!