How to implement multiple tbody elements into jquery tablesaw plugin? -
it seems like, using more 1 tbody element inside table breaks tablesaw plugin, responsiveness working on last tbody, or missing something.
i'm using latest plugin , swipe mode.
plugin here https://github.com/filamentgroup/tablesaw
$(document).ready(function(){ $('table.search') .addclass('tablesaw tablesaw-stack') .attr({ "data-tablesaw-mode": "stack" }); $('table.search tr td:first-child, table.search tr td:nth-child(3)') .attr({ 'data-tablesaw-priority': 'persist' }) .addclass("title"); $('table.datalist') .addclass("tablesaw tablesaw-swipe") .attr({ "data-tablesaw-mode": "swipe" }); $('table.datalist tr th') .attr({ 'scope': 'col' }) $('table.datalist tr th:first-child') .attr({ 'data-tablesaw-priority': 'persist' }) .addclass("title"); $('table.datalist tr td:first-child').addclass('title'); $( document ).trigger( "enhance.tablesaw" ); });
Comments
Post a Comment