superRaytin / paginationjs

A jQuery plugin to provide simple yet fully customisable pagination.
http://pagination.js.org
MIT License
912 stars 659 forks source link

Pagesize attribute not working with Asynchronous http get request #122

Closed BombeyR-zz closed 1 year ago

BombeyR-zz commented 3 years ago

Description of the Issue When I use asynchronous request to Flickr, the pagination container produces the complete list irrespective of the pageSize attribute

To Reproduce https://codepen.io/bombeyr/pen/Jjbvdjv

Expected behavior When I set pageSize to 12, I need the pagination container to contain a maximum of 12 items

Versions:

Additional context Add any other context about the problem here.

superRaytin commented 1 year ago

Pagination will not process the data items of the asynchronous request, what it does is pass all the data returned from the request to the callback function