Socket
Socket
Sign inDemoInstall

pagination-observer

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pagination-observer

Pagination based in Mutation Observer API


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Install size
20.1 kB
Created
Weekly downloads
 

Readme

Source

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>viverra.Donec.tempus@ridicsAenean.ca</td><td>Apr 9, 2016</td></tr>
        <tr><td>2</td><td>Garrison Barrera</td><td>commodo.alibero@anteVivamusnon.com</td><td>Jan 12, 2017</td></tr>
        <tr><td>3</td><td>Cathleen Vaughan</td><td>Duinissim@nec.co.uk</td><td>Mar 23, 2016</td></tr>
        <tr><td>4</td><td>Angelica Booth</td><td>Nulla.semper.tellus@aptenttaciti.org</td><td>Oct 14, 2015</td></tr>
        <tr><td>5</td><td>Barbara Barber</td><td>amet.massa.Quisque@etcommodoat.com</td><td>Jul 1, 2017</td></tr>
</table>

This will render something like this:

alt table

Keywords

FAQs

Last updated on 03 Oct 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc