11
rated 0 times
[
16]
[
5]
/ answers: 1 / hits: 20615
/ 9 Years ago, mon, september 21, 2015, 12:00:00
I want to use Datatables and Responsive extension inside Bootstrap Tabs. I have this working separately.
$(document).ready(function() {
$('#example').DataTable( {
responsive: true
} );
$('#exampleInTab').DataTable( {
responsive: true
} );
} );
$('a[data-toggle=tab]').on('shown.bs.tab', function (e) {
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust()
.responsive.recalc();
});
You can see the issue here
More From » twitter-bootstrap