Hi,
first of all thanks for an awesome plugin :) I'm currently working on a website built with bootstrap and for tables I'm using the responsive extension (all latest versions).
So my problem occurs because I have some tables in tabs, which are hidden on datatable init, so the layout is broken on show. So to correct this I tried using responsive.recalc() like it says in the reference, but nothing happens and if I debug the code, it says that the function is undefined.
My code:
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$('.data-table:visible').each( function(e) {
$(this).DataTable().columns.adjust().responsive.recalc();
}) })
DataTables debug if needed - http://debug.datatables.net/aceley
What am I doing wrong?
Thank you for any help.