Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    pager-componentpublic

    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

    Keywords

    none

    install

    npm i pager-component

    Downloadsweekly downloads

    5

    version

    0.1.0

    license

    none

    last publish

    collaborators

    • avatar