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'm trying to make so 2 first, 2 last and also previous, current and next pages are shown. And the rest is hidden and replaced with dots.
Say we have 12 pages:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know how to show page numbers:
I'm trying to make so 2 first, 2 last and also previous, current and next pages are shown. And the rest is hidden and replaced with dots.
Say we have 12 pages:
I have the algorithm itself:
What would be the proper approach here?
order
to move them in correct position? This seems weird.Beta Was this translation helpful? Give feedback.
All reactions