JDataPaging is a simple plugin for managing paging composed of complex HTML elements that work on the client and server side
The pagin that adapts to the structure of your web page, create your own custom pagin html structure, and JDataPaging will adapt to it
- Include JDataPaging on your page before the closing tag
<script src="/path/dist/core/1.1.0/jdata-paging.min.js"></script>
- 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
JDataPaging is available under the MIT license. See the LICENSE for more info.