the excellent footable plugin I\'m trying to integrate in by twitter bootstrap doesn\'t initialize. That is to say, thank to my firebug inspector, I can see the table is han
It is because fooTable
cannot tell the size of the screen when it is in a hidden div/tab
.
Use the following jQuery:
$(document).ready(function() {
$('.nav-tabs a').click(function (e) {
//prevents re-size from happening before tab shown
e.preventDefault();
//show tab panel
$(this).tab('show');
//fire re-size of footable
$('.footable').trigger('footable_resize');
});
});