Detect if row is visible due to search or filter

Detect if row is visible due to search or filter

arnorbldarnorbld Posts: 123Questions: 23Answers: 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: 21,336Questions: 26Answers: 4,951

    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: 123Questions: 23Answers: 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.