1.0.4 • Published 1 year ago
@annoyingmouse/wc-pagination v1.0.4
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