pagination-observer
v1.0.1
Published
Pagination based in Mutation Observer API
Downloads
9
Readme
Pagination Observer
Simple table pagination based in MutationObserver API.
Just add class="pagination-observer"
to your table and then call the script. Optionally you can set the atributes data-current="1"
and data-show="5"
to configure the initial page and the number of element to show.
<table class="pagination-observer" data-current="1" data-show="5">
<tr><td>1</td><td>Alexander Benton</td><td>[email protected]</td><td>Apr 9, 2016</td></tr>
<tr><td>2</td><td>Garrison Barrera</td><td>[email protected]</td><td>Jan 12, 2017</td></tr>
<tr><td>3</td><td>Cathleen Vaughan</td><td>[email protected]</td><td>Mar 23, 2016</td></tr>
<tr><td>4</td><td>Angelica Booth</td><td>[email protected]</td><td>Oct 14, 2015</td></tr>
<tr><td>5</td><td>Barbara Barber</td><td>[email protected]</td><td>Jul 1, 2017</td></tr>
</table>
This will render something like this: