Pagination
Pagination
Overview
The Pagination component generates indicator dots.
Properties
items
items:PaginationItem[]
An array with data of each page. The data object contains following properties:
li | HTMLLIElement | A list item element. |
---|---|---|
button | HTMLButtonElement | A button element for a dot. |
page | number | 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
.