Hello, @olesolo
In order to show data table in tab properly, you should call the function from Data Tables by Supsystic plugin to refresh table after the tab opening.
Here is the example of custom code for using data tables in tabs:
<ul id="tabsList">
<li><a href="#tabItemContent_1" class="tabItem">Tab 1</a></li>
<li><a href="#tabItemContent_2" class="tabItem" data-table_id="1">Tab 2</a></li>
<li><a href="#tabItemContent_3" class="tabItem">Tab 3</a></li>
</ul>
<div id="tabItemContent_1">Some data</div>
<div id="tabItemContent_2">[supsystic-tables id=1]</div>
<div id="tabItemContent_3">Some data</div>
jQuery(document).ready(function() {
var tabSection = jQuery('#tabsList');
var app = window.supsystic && window.supsystic.Tables ? window.supsystic.Tables : false;
// Check are Data Tables by Supsystic plugin API and tabs section exist on page
if(tabSection.length && app) {
// Find all tabs
tabSection.find('.tabItem').each(function() {
// Get table id
var tableId = jQuery(this).data('table_id');
// Check, is this tab contains table or not
if(tableId) {
jQuery(this).on('click', function() {
// Call the function from Data Tables by Supsystic plugin to refresh table after the tab opening
if(typeof app.getTableInstanceById(tableId).fnAdjustColumnSizing == 'function' ) {
app.getTableInstanceById(tableId).fnAdjustColumnSizing(false);
}
});
}
});
}
});
Please try it and let us know the results.