Paging the rows
You can limit the number of visible rows with the
max
method. If the table contains more rows, a Pager will be created. An
equivalent method size
also fixes the height of the Table so that the pager
(footer) never jump up and down.
You can track the page with the onpage
method, if for some reason you need
that.
You can set the max
and total
method to show pager status in the
footer.
If you would like to manage paging yourself, because you have a billion products and don't want to fetch them all at once, you can create your own pager.
If you need to update the index later on, for example to support history navigation, it is
recommended that you change the
page
property of the existing Pager instead of initializing a whole new
Pager. You can just call the same method without arguments.
If you would like to manage paging by yourself and show page status, you need to set
total
and number
, which are the total of items in the table and
the number of items of a page.