Closed smknstd closed 5 years ago
You should not pass the table itself into init(), but rather a container in which there's a table with tablesaw attributes.
<table id="myTable" class="xnt-table-fr" data-tablesaw-mode="swipe">
</table>
</div>
And then
Tablesaw.init(document.querySelector("#myTableContainer"));
Also in my case (maybe because I was doing dynamic import) I had to call _init method instead.
@dszewczyk1 tnx a lot, it resolves my problem.
This will work transparently in upcoming version v3.1.0
Here is my html
I manage to init tablsaw globally
But can't init a specific table...
What's wrong ? Is there an example somewhere ?
Thanx