jspaginator

jQuery pagination plugin


Install
bower install jspaginator

Documentation

jsPaginator - jQuery pagination plugin

Generate simply your paginations from a not orderly list.

Requirements

  • jQuery >= 1.11.x (No make out a will with the lower versions)

Getting Started

Downloading

* Download: https://github.com/JamesHemeryfr/jsPaginator/archive/master.zip
* With bower: bower install jspaginator

Use

Include jQuery and the plugin on a page. Then select a form to validate and call the validate method.

<html>
    <head>
        ....
    </head>
    <body>
        <div class="comments">
            <ul class="comments-list">
                <li>A comment</li>
                <li>A comment 1</li>
                <li>A comment 2</li>
                <li>A comment 3</li>
                <li>A comment 4</li>
                <li>A comment 5</li>
                <li>A comment 6</li>
                <li>A comment 7</li>
                <li>A comment 8</li>
                <li>A comment 9</li>
                <li>A comment 10</li>
                <li>A comment 11</li>
                <li>A comment 12</li>
            </ul>
        </div>
        <script type="text/javascript" src="jquery.min.js"></script>
        <script type="text/javascript" src="jquery.jspaginator.min.js"></script>
        <script>
            (function($){
                $('.comments-list').jsPaginator();
            });
        </script>
    </body>
</html>

Parameters

  • perPage - Set number elements per page
  • currentPage - Set default page
  • ulPaginateClass - Set paginate ul class
  • liPaginateClass - Set paginate li class
  • currentPagePaginateClass - Set current page class
  • durationChangePage - Set duration animation on changement page

Exemples:

License

Copyright (c) 2014 James Hemery Licensed under the MIT license.