fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.12k stars 636 forks source link

Iterating all visible (unfiltered) rows #875

Open aguerrag opened 4 years ago

aguerrag commented 4 years ago

Hello

I'm working with fooTable and I need to iterate through all the unfiltered rows. I'm using this code to iterate through all the table, but I need to distinguish which ones are not visible because of the filter:

var ft = FooTable.get("#showcase-example-1"); $.each(ft.rows.all, function(i, row){ v=row.val(); console.log("i="+i+" v.id="+v.id); });

The table has data-filtering="true".

Normally I do my research and find my answers in questions others have asked already, but for this one I'm a little lost.

Thank you in advance for your answers.

aguerrag