filamentgroup / tablesaw

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

Column Name missing on mobile view #377

Closed onyxnl closed 2 years ago

onyxnl commented 5 years ago

Hi All,

I encountered one issue. I get data from ajax and append data to table. At that time column name is missing on mobile view. If I insert static data , it is working.

I hope to help me.

Static Column Name AAA Column Name BBB Column Name CCC dynamic AAA BBB CCC

dhorodys commented 3 years ago

I have the same problem on my Drupal 7 CMS. On the page with the view and exposed filters, the tablesaw-cell-label from the responsive table disappear after applying a filter. They show up normally, only after using Ajax they disappear.

rotator commented 3 years ago

I had the same error after Ajax with Drupal. Fixed it with reinit tablesaw after Ajax complete. In the JS file:

  $(document).ajaxComplete(function (event, xhr, settings) {
    if ($('.tablesaw').length) {
      Tablesaw.init();
    }
  });