filamentgroup / tablesaw

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

Initialize with Selector Instead of Data Attribute? #387

Closed kmgdevelopment closed 1 year ago

kmgdevelopment commented 4 years ago

Is it possible to initialize tablesaw using a JS selector rather than a data attribute? For example with jQuery:

$('.blog-body table').tablesaw();

I've got a lot of tables that exist inside WYSIWYG fields in my CMS and doing a back-end find & replace to add data attributes to table elements seems more laborious and prone to bugs than just using a jQuery selector.