tab content bootstrap with table 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();
});