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

darrenmdarrenm Posts: 29Questions: 11Answers: 0

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

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    There's not a specific API call, but you can get all the rows on the current paging with rows() and use selector-modifier, - table.row({page:'current'}). You can then loop through those with each() and see if any matches the row you're interested in.

    Colin

  • darrenmdarrenm Posts: 29Questions: 11Answers: 0

    Cheers, thanks.

This discussion has been closed.