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
|
- 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: