wwwaiser / react-js-pagination

http://vayser.github.io/react-js-pagination
Creative Commons Zero v1.0 Universal
353 stars 95 forks source link

Add Events for Previous, Next, First, and Last Page Clicks #109

Closed kevingilbert100 closed 3 years ago

kevingilbert100 commented 4 years ago

This PR adds events for different page events.

function(event, pageNumber)

onPrevPage | Function | | Will fire in addition to onChange if the previous page button is clicked. onNextPage | Function | | Will fire in addition to onChange if the next page button is clicked. onFirstPage | Function | | Will fire in addition to onChange if the first page button is clicked. onLastPage | Function | | Will fire in addition to onChange if the last page button is clicked.

kevingilbert100 commented 4 years ago

@vayser I believe this is essential and should make it into the next version.

kevingilbert100 commented 3 years ago

@vayser PING

mcmcphillips commented 3 years ago

Why was this issue closed? @kevingilbert100

kevingilbert100 commented 3 years ago

No response from OP @mcmcphillips

kevingilbert100 commented 3 years ago

I'd recommend maybe trying another library or forking.

mcmcphillips commented 3 years ago

I agree with that. It definitely helps to be able to track page clicks accurately.