Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Added a pager for the tablesorter #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added a pager for the tablesorter #10

wants to merge 1 commit into from

Conversation

christianz
Copy link

I added a pager for the table in fbootstrapp. Add the tablesorter to your table as usual, and a

<div id="pager" class="pagination"></div>

directly after your table declaration. Then hook it up with:

$("#my-table").tablesorter().tablesorterPager({
    container: $("#pager")
});

It supports the following additional options:

  • pagesToDisplay (default 5) - the number of page buttons to display at a time
  • prevText (default 'Previous') - the text on the prev button
  • nextText (default 'Next') - the text on the next button

Check out the table-with-pager.html page in /examples for more info. Hope you can use this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant