1.1.0 • Published 7 years ago

boundless-pagination v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

THIS IS AN AUTOGENERATED FILE. EDIT INDEX.JS INSTEAD.

Pagination

View and navigate heterogenious content one page at a time.

Pagination is implemented as an encapsulated view system, accepting an array of items as input.

Component Instance Methods

When using Pagination in your project, you may call the following methods on a rendered instance of the component. Use refs to get the instance.

  • currentPage() returns the one-indexed page number currently in view

  • pageToIndex(index: number) renders the page that contains the zero-indexed item

Props

Note: only top-level props are in the README, for the full list check out the website.

Required Props

Optional Props

showPaginatedState={
    (currentPage, totalPages) => (
        <div className='foo'>
            You're on page {currentPage} of {totalPages} pages!
        </div>
    )
}
```</td>
    </tr>
    
    <tr>
        <td>toggleWrapperProps</td>
        <td><pre><code>object</code></pre></td>
        <td><pre><code class="language-js">{}</code></pre></td>
        <td>any [React-supported attribute](https://facebook.github.io/react/docs/tags-and-attributes.html#html-attributes); applied to the SegmentedControl node(s), `.b-pagination-controls`</td>
    </tr>
    
</table>