pagination icon indicating copy to clipboard operation
pagination copied to clipboard

Hide lastPage

Open souuu opened this issue 6 years ago • 2 comments

Hello, It would be nice to make a bool prop to hide the last page, because when we have too much data, we prefer not to go to the last indexes ( like google do ) There is a closed issue for this, but I did not succeed to make it using itemRender.

Thank you,

souuu avatar Sep 18 '19 09:09 souuu

I have made a workaround for this, maybe it can helps. we add on className prop : className={classNames({"hide-last-pager" : totalRequestsCount>10000 ? true : false})} and in css we add : .hide-last-pager li:nth-last-child(2) { display: none; }

souuu avatar Sep 18 '19 09:09 souuu

Yes I agree that we should have this option

tducloc avatar Mar 24 '22 01:03 tducloc