Getting selected rows on current page only
Getting selected rows on current page only

I am trying to get the rows selected in current page only, but
table.rows( { page: 'current'},{ selected: true } ).data().pluck(0).toArray();
gives me all current rows
and
table.rows( { selected: true }, {page: 'current'} ).data().pluck(0).toArray();
gives me all selected rows
What am I missing?
Thanks!
Anna
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I think it needs to be one object not two, like this:
table.rows( { page: 'current', selected: true } ).data().pluck(0).toArray();
Kevin
Yes! Thank you so much, Kevin!
Anna