Detect if row is visible due to search or filter

Detect if row is visible due to search or filter

arnorbldarnorbld Posts: 90Questions: 15Answers: 0

Hi guys,

I'm looping through rows with

myTable.rows().every( function ( rowIdx, tableLoop, rowLoop ) {

Is there a way for me inside that loop to determine if the specific row is visible due to using the search entry or filters? I'm sure there is an easy way to do it, but I'm not finding it...

Many thanks in advance :)

Best regards,

Answers

  • kthorngrenkthorngren Posts: 16,400Questions: 25Answers: 3,891

    You can use the selector-modifier to iterate only the rows that match the filter or are removed. See the examples for more details.

    Kevin

  • arnorbldarnorbld Posts: 90Questions: 15Answers: 0

    Hi Kevin,

    Thank you so much for the response! I had found an example online somewhere which led me to the selector-modifier information :)

    Best regards,

Sign In or Register to comment.