Constructor
new Pagination(target, options)
Initializes the pagination for the element defined by id and
options.
Parameters:
Name | Type | Description |
---|---|---|
target |
string | HTMLElement | |
options |
object |
- Source:
Methods
show(page, pages)
Generates a new pagination for current page and number of pages.
Parameters:
Name | Type | Description |
---|---|---|
page |
number | |
pages |
number |
- Source: