dataTable tab code example
Example: datatble tab bootstrap 4
$(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function (e) {
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
});
$(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function (e) {
$.fn.dataTable.tables({ visible: true, api: true }).columns.adjust();
});