filamentgroup / tablesaw

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

TypeError when calling refresh() on Column Toggle table #337

Closed jacobhipp closed 5 years ago

jacobhipp commented 6 years ago

Hi,

The ajax demo code shows that $('#mytable').tablesaw().data( "tablesaw" ).refresh(); can be used to trigger a refresh on a table. However, calling this against a Column Toggle table throws the following JS error in my project (with v3.0.9) and on the Column Toggle demo: TypeError: $(...).data(...).refreshPriority is not a function

The table still seems to refresh correctly, but is this a bug or is there a better way to refresh data?

Thanks!

elBotija commented 5 years ago

The function, refreshPriority() don't exist, in olds commits, he remove functinon.

zachleat commented 5 years ago

This will be included with v3.1.0