mssalvo / JDataPaging

JDataPaging is a simple plugin to manage pagination, it is suitable for any HTML element (div, span, a, img, table, etc, etc), manages both client and server side work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDataPaging

JDataPaging is a simple plugin for managing paging composed of complex HTML elements that work on the client and server side

Paging system

The pagin that adapts to the structure of your web page, create your own custom pagin html structure, and JDataPaging will adapt to it

Getting Started

  1. Include JDataPaging on your page before the closing tag
<script src="/path/dist/core/1.1.0/jdata-paging.min.js"></script>
  1. Include JDataPagingSupport if you are using a javascript / json data object
<script src="/path/dist/support/1.1.0/jdata-paging-support.min.js"></script>

Example Istance JDataPaging v.1.1.0

       JDataPaging.paging('myname',{
          box:'div.list-group',  
          row:'a.list-group-item',  
          comboPages:'select.custom-select',   
          pages:[2,3,5,7],  
          labelPageCurrent:'li.current',  
          labelPageTotal:'li.total',   
          btnNext:'a.next',  
          btnPrevious:'a.previous' 
       })

Recover the instance

JDataPaging.get.myname

License

JDataPaging is available under the MIT license. See the LICENSE for more info.

About

JDataPaging is a simple plugin to manage pagination, it is suitable for any HTML element (div, span, a, img, table, etc, etc), manages both client and server side work

License:MIT License


Languages

Language:HTML 62.5%Language:JavaScript 37.5%