@annoyingmouse/wc-pagination

1.0.4 • Public • Published

This web component creates a pagination element.

Usage

<wc-pagination total="1000"
               current="1"
               page-size="15"></wc-pagination>
<script type="module" src="wc-pagination.js"></script>

Configuration

The pagination relies on three attributes.

Adding a total number variable is the total number of records.

Adding a current number variable is the current page.

Adding a page-size number variable is the number of records to be shown on the page.

License

MIT

Package Sidebar

Install

npm i @annoyingmouse/wc-pagination

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

21.4 kB

Total Files

5

Last publish

Collaborators

  • annoyingmouse