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 have a set of results paginated to over 100 pages. Is there any way to format the navigation to say something like:
<< < 1 2 3 ... 98 99 100 > >>
Apologies if this is in the documentation, I couldn't seem to find it.
Thanks
For the time being I'm just doing this: pageCount = $('.page-navigation a').length; if (pageCount > 20) { $('.page-navigation a').hide(); $('.page-navigation a').slice(0, 5).show(); $('.page-navigation a').eq(5).after('...'); $('.page-navigation a').slice(pageCount - 5, pageCount).show();
Hi.
I have a set of results paginated to over 100 pages. Is there any way to format the navigation to say something like:
<< < 1 2 3 ... 98 99 100 > >>
Apologies if this is in the documentation, I couldn't seem to find it.
Thanks
For the time being I'm just doing this:
pageCount = $('.page-navigation a').length; if (pageCount > 20) { $('.page-navigation a').hide(); $('.page-navigation a').slice(0, 5).show(); $('.page-navigation a').eq(5).after('...'); $('.page-navigation a').slice(pageCount - 5, pageCount).show();
The text was updated successfully, but these errors were encountered: