You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to disable the 'next page' link and 'last page' link when the user gets to the last page.
Currently I can do this with first and previous by checking that the value is 1, but there is no way to check if it's the last page.
I would suggest passing the totalPages in with the props, or updating the isDisabled prop for that component.
The text was updated successfully, but these errors were encountered:
Hi @PaulInglis
You should be able to do it by using isActive property. On the last page, it should be "true" for the next button and on the first page - for the previous button.
I'd like to be able to disable the 'next page' link and 'last page' link when the user gets to the last page.
Currently I can do this with first and previous by checking that the value is 1, but there is no way to check if it's the last page.
I would suggest passing the totalPages in with the props, or updating the isDisabled prop for that component.
The text was updated successfully, but these errors were encountered: