2

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.

Danielson Silva
  • 178
  • 3
  • 13

3 Answers3

1

This is the attribute format you want to use:

data-paging-size="1000"

However, it sounds like you want to turn paging off, which you can do during initialization by not including "paging": {"enabled": true} when initializing footable:

// document ready
$(function () {
    $('#myTable').footable({
        // initialization options
    });
});

10 is the default page size. Source

user3071284
  • 6,955
  • 6
  • 43
  • 57
1

try it

$(id).footable({pageSize:50});

I find pageSize argument in footable source and it's seem work

0

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">
Fury
  • 4,643
  • 5
  • 50
  • 80