Gravatar for wrolloff@gmail.com

Question by Will Rolloff, Oct 27, 2016 10:54 AM

Page number jump

Does the Coveo JS Framework have functionality that will allow a website visitor to enter a page number to jump to those results.

2 Replies
Gravatar for ssartell@rightpoint.com

Answer by ssartell, Oct 27, 2016 11:01 AM

I think you're probably looking for the setPage method on the Pager.

https://coveo.github.io/search-ui/components/pager.html#setpage

Edit: Realized after the fact that you're looking for out-of-the-box functionality. If that's the case, I don't believe that's a thing.

Gravatar for olamothe@coveo.com

Answer by olamothe, Oct 27, 2016 11:15 AM

If the page is loaded with

searchpage.html#first=0

This will load the first page. (0 based index)

If it's loaded with :

searchpage.html#first=10

This will be the second page, assuming you are displaying 10 results per page (which is the default value)

Ask a question