Module: pagination_js

Methods

(inner) createPaginationEls(totalPages, curPage) → {HTMLElement}

Creates the pagination elements with the dropdown
Parameters:
Name Type Description
totalPages number number of total pages
curPage number current page
Source:
Returns:
button group with pagination
Type
HTMLElement

(inner) gotoPage(offset, limit) → {void}

Go's to the page defined by offset
Parameters:
Name Type Description
offset number page offset
limit number maximum entries to display
Source:
Returns:
Type
void

(inner) gotoPageDir(direction, limit) → {void}

Go's to the previous or next page
Parameters:
Name Type Description
direction string on of next, prev
limit number maximum entries to display
Source:
Returns:
Type
void

(inner) setPagination(total, returned) → {void}

Pagination function
Parameters:
Name Type Description
total number number of total entries
returned number number of returned entries
Source:
Returns:
Type
void