jquery-gift-of-the-pagi
v0.1.7
Published
A clean prev/next paginator to be used with Bootstrap 3
Downloads
11
Maintainers
Readme
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-pagi
or alternatively just cloned via git:
git clone [email protected]: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'
});