Pagination

You're browsing the documentation for v3

Overview

The Pagination component generates indicator dots.

Properties

items

items:PaginationItem[]

An array with data of each page. The data object contains following properties:

liHTMLLIElement

A list item element.

buttonHTMLButtonElement

A button element for a dot.

pagenumber

A page index.

Methods

getAt()

getAt( index: number ): PaginationItem

Returns the pagination item at the specified index. This method will convert the index to the page index. For example, if the perPage option is 3, getAt( 0 ), getAt( 1 ) and getAt( 2 ) return a same item.

Params

index

An index.

Return

A pagination item object if available, or otherwise undefined.