How to tell if a given row is visible in the current page under pagination
How to tell if a given row is visible in the current page under pagination

If I have a handle to a specific row in the table, is there an API call that will tell me whether or not it is currently visible on the page? I am using pagination and need to know if the row I am working with is included in the set of rows on the current page.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There's not a specific API call, but you can get all the rows on the current paging with
rows()
and useselector-modifier
, -table.row({page:'current'})
. You can then loop through those witheach()
and see if any matches the row you're interested in.Colin
Cheers, thanks.