annoyingmouse / wc-pagination

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:JavaScript 37.9%Language:HTML 36.8%Language:CSS 25.3%