node package manager

jquery-gift-of-the-pagi

Gift of the Pagi

A clean prev/next paginator to be used with jQuery and Bootstrap 3.

Depends on:

  • jQuery
  • Bootstrap 3

See demo.

Installation

can be installed via npm:

npm install jquery-gift-of-the-pagi

or alternatively just cloned via git:

git clone git@github.com:zakangelle/jquery-gift-of-the-pagi.git

can be used as a CommonJS module:

require('jquery-gift-of-the-pagi');

or loaded in by using a script tag:

<script src="jquery-gift-of-the-pagi/jquery-gift-of-the-pagi.js"></script>

Also, make sure to include the CSS: jquery-gift-of-the-pagi.css

Use

HTML

<ul class="pagi-list">
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
  <li>Item 5</li>
</ul>

JS

$('.pagi-list').giftOfThePagi();

Or alternatively call it with options:

$('.pagi-list').giftOfThePagi({
  prevButtonText: 'Previous',
  nextButtonText: 'Nextness'
});