0.1.0 • Published 11 years ago

pager-component v0.1.0

Weekly downloads
22
License
-
Repository
-
Last release
11 years ago

pager

Pager ui component.

npm.io

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 nth page and .render().

Pager#render()

Re-render the pager.

License

MIT