×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Pager

Thomas Walker

Thomas Walker Last update: Aug 7, 2017

Methods

Name Type Description
$pager.hasNext boolean

True if there exists a page succeeding the current one, otherwise false.

$pager.hasPrev boolean

True if there exists a page preceding the current one, otherwise false.

$pager.nextLink String

The link to the succeeding page. If there is no succeeding page, this returns a link to the current page.

$pager.pages List<PagerPage>

A list of the pages that this pager manages.

Can be used to display direct links to the pages, for example like this:

#foreach ($page in $pager.pages)
  <a href="$page.link" class="#if($page.current) current #end">
    $page.number
  </a>
#end

Returns: A list of pager pages.

$pager.prevLink String

The link to the preceding page. If there is no preceding page, this returns a link to the current page.

2x2.9
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok