Minimal jQuery Table Pagination Plugin SimplePagination - Download Minimal jQuery Table Pagination Plugin - SimplePagination

Download Minimal jQuery Table Pagination Plugin – SimplePagination

Posted on

This time I will share jQuery Plugin and tutorial about Minimal jQuery Table Pagination Plugin – SimplePagination, hope it will help you in programming stack.

Minimal jQuery Table Pagination Plugin SimplePagination - Download Minimal jQuery Table Pagination Plugin - SimplePagination
File Size: 5.32 KB
Views Total: 24400
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

SimplePagination is a really simple jQuery plugin used to add pagination to your large Html table with very little effort. By default, the plugin truncates your table and shows 5 rows per page. All the pagination elements (buttons, links, containers) can be styled in the CSS.

How to use it:

1. Load jQuery library and the jQuery simplePagination plugin at the end of the document.

1 <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
2 <script src="jquery.simplePagination.js"></script>

2. Just call the plugin on your existing Html table and you’re done.

1 $("#example").simplePagination();

3. Available options and defaults.

01 $("#example").simplePagination({
02  
03 // the number of rows to show per page
04 perPage: 5,
05  
06 // CSS classes to custom the pagination
07 containerClass: '',
08 previousButtonClass: '',
09 nextButtonClass: '',
10  
11 // text for next and prev buttons
12 previousButtonText: 'Previous',
13 nextButtonText: 'Next',
14  
15 // initial page
16 currentPage: 1
17  
18 });

Change log:

2015-10-11


This awesome jQuery plugin is developed by smarulanda. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net