0.1.7 • Published 12 years ago
jquery-gift-of-the-pagi v0.1.7
Gift of the Pagi
A clean prev/next paginator to be used with jQuery and Bootstrap 3.
Depends on:
- jQuery
- Bootstrap 3
Installation
can be installed via npm:
npm install jquery-gift-of-the-pagior alternatively just cloned via git:
git clone git@github.com:zakangelle/jquery-gift-of-the-pagi.gitcan 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'
});