filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Table swipe option is giving error on pagination #312

Closed BhagyashreePanda closed 6 years ago

BhagyashreePanda commented 7 years ago

When there are more columns in my table , I am adding table swipe mode to my table as an attribute. It is working properly in case of normal table data. But when i add pagination to my table and change the number of page dynamically, the display of table is getting disturbed. Table swipe option is not working properly. The table heading collapsed with improper column width and last few columns does not have heading

I have tried everything to fix the issue but practically nothing is working.

Kindly help me for the same.

Java script code to initialize table saw plug-in `$('table').each(function (index) { if ($(this).is(':visible')) { $(this).parent().trigger('enhance.tablesaw');

        }
    });`

HTML Code to display table <table class="table c-table" data-tablesaw-mode="swipe" data-tablesaw-minimap data-ng-init="pagination = true" data-summary="">

Expected Result: Some columns of table column data should be shown as per data and page size. Rest column should be hidden like its heading.

zachleat commented 6 years ago

I ran into this same problem this week and did a bunch of rework around the swipe table’s refresh method. This will be included with v3.0.6 so please retest after that release goes out and reopen if you are still having a problem.