Datatables colums.adjust in specific Bootstrap Tab
Datatables colums.adjust in specific Bootstrap Tab
Good Day,
I managed to get the datatables in my Bootstrap Tabs to have the correct heading width using
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
});
The next problem I have is the following:
I have a main table on the left, when you click on a row, it opens up an info pane which has the bootstrap tabs and 2 of the tabs have the datatables.
When I click on the on of the tabs, it correctly changes the tables so that those in the info pane is fine, but it also re-adjusts the main table, which it should not do. Only the tables in the info pane should adjust.
Is there a way to specify which table should the above code run for?
Thanx in adance!