Skip to main content
Skip table of contents

Pager

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.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.