flaviusmatis / simplePagination.js

A simple jQuery pagination plugin.
Other
784 stars 402 forks source link

Possible to alter pagination display behavior to custom format #136

Open WilliamCVan opened 7 years ago

WilliamCVan commented 7 years ago

The default behavior is to show pages 1-5, when you page to #4, it will display pages 2-6 [4 selected], pages 3-7 [5 selected]. Basically 2 pages before and 2 pages after the selected number.

Is it possible to display instead like: 1-5, [hit next] pages 6-10, [hit next] pages 11-15, each page boundary firing an AJAX request. Paging backwards will show same page boundaries. Can this format be initialized with current settings/parameters available? Or do I have to change the code within?

Thanks