Search code examples
jqueryfootable

Change the limit of rows in a Footable table?


I am doing a query in postgresql that retuns me more than 160 registers. When I try to put the data into a footable table, it only shows 10 rows and nothing more. I tried to add the property in table tag called data-page-size="10000" or data-paging-size="10000" with no luck.

I don't want to put several pages, I just want one page with all the registers.


Solution

  • Try this :

    var numberOfRows = 20;
    
    $('.footable').footable();        
    $('.footable').data('page-size', numberOfRows);
    $('.footable').trigger('footable_initialized');
    

    OR set the table attribute data-paging-size="20"

    <table class="footable" data-paging-size="15">