Detect if row is visible due to search or filter

Detect if row is visible due to search or filter

arnorbldarnorbld Posts: 110Questions: 20Answers: 1

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: 20,255Questions: 26Answers: 4,761

    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: 110Questions: 20Answers: 1

    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.