npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pager-component

0.1.0

@tjholowaychuk

npmSnykSocket
Downloads:8
$ npm install pager-component
DailyWeeklyMonthlyYearly

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

Pager#render()

Re-render the pager.

License

MIT