footable in bootstrap 3 not initializing

后端 未结 3 1629
死守一世寂寞
死守一世寂寞 2021-01-16 02:25

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

3条回答
  •  温柔的废话
    2021-01-16 03:17

    You answered your own question. The footable plugin only processes tables that are visible. Check the code in footable.js resize() method

     if (!$table.is(':visible')) {
        return;
     } //we only care about FooTables that are visible
    

    So you are correct. Either be sure the tab is fully visible, and all parents are visible or trigger the initialize event which causes footable to reset the table. But perhaps it is better to just reinitialize the table you just made visible.

    $('#myFooTable').trigger('footable_initialize');
    

提交回复
热议问题