0.1.0 • Published 11 years ago
pager-component v0.1.0
pager
Pager ui component.
Installation
$ component install component/pager
Events
select
(n) emitted when a page is selected
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#select(n)
Select the n
th page and .render()
.
Pager#render()
Re-render the pager.
License
MIT