Native JavaScript Pagination Plugin
Add-ons

Plugin Description: A native JavaScript pagination plugin that does not support older versions of IE.
URL of the Newly Released Second Version
Last Updated: 2020-09-22 22:13:19
Changelog: Added Enter key support to the navigation input field. Modified a section of code to ensure compatibility with IE11.
Last Updated: 2020-09-14 00:48:43
Changelog:Removed console output.
Last Updated: 2020-09-13 12:15:20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | new Pagination({ element: '#pages', // Element type: 1, // Style type, available options: [1,2] pageIndex: 1, // Initial page number pageSize: 5, // Items per page pageCount: 9, // Number of page numbers total: 100, // Total number of data items jumper: false, // Show navigation input field singlePageHide: false, // Hide pagination when there is only one page prevText: 'Previous', // Previous page text nextText: 'Next', // Next page text disabled: true, // Whether to display disabled states currentChange: function(index) { // Callback triggered when the page number changes console.log(index); }}); |
评论