Class: PopupPagination

vef.map.popup.PopupPagination(target, options)

Pagination helper class for paging of popup metadata

Constructor

new PopupPagination(target, options)

Creates an instance of PopupPagination.
Parameters:
Name Type Description
target HTMLElement The target element to attach the popup pagination.
options Object The options for the popup pagination.
Properties
Name Type Attributes Default Description
pageCount number <optional>
10 The total number of pages.
page number <optional>
1 The current page.
Source:

Methods

getPage() → {number}

Gets the current page.
Source:
Returns:
The current page.
Type
number

next()

Goes to the next page.
Source:

previous()

Goes to the previous page.
Source:

setPage(page)

Sets the current page.
Parameters:
Name Type Description
page number The current page.
Source:

setPageCount(pages)

Sets the total number of pages.
Parameters:
Name Type Description
pages number The total number of pages.
Source: