Native JavaScript Pagination Plugin

Add-ons
2026-07-21 13:23 5 次浏览 • 0 次下载 5.3KB
Native JavaScript Pagination Plugin

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);
}
});
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare