Awesome
pager
Pager ui component.
Installation
$ component install component/pager
Events
show
(n) emitted when a page is selected (0-based)
API
Pager#total(n)
Set the total number of items to n
.
Pager#perpage(n)
Set the number of items per page to n
. [5]
Pager#pages()
Return the total number of pages.
Pager#show(n)
Select page n
, .render()
, and emit "show".
Pager#select(n)
Select page n
and .render()
.
Pager#render()
Re-render the pager.
License
MIT