Skip to content

donatocardoso/plugin-table-paginate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin-Paginate-Table

Version 1.0

  • This plugin aims to perform the pagination of a table, has the navigation function between the pages and you can choose the number of lines that are displayed.

Documentation:

  • To use this plugin you need to make use of your CSS and SCRIPT code. It is necessary that the table has an ID.

Example:

<table id="tbTest"></table>
  • And it is only necessary to call the PAGINATE function and, if necessary, pass the desired number of lines per page as parameters, by default there is 5 (five) rows:

    $("#tbTest").paginate(5); // First parameter: Amount lines for page.
  • You can also choose which page the table will begin to display:

    $("#tbTest").paginate(5, 2); // Second parameter: Page that will be displayed.