https://github.com/simov/sr-pagination
Simple pagination generator
https://github.com/simov/sr-pagination
Last synced: 7 months ago
JSON representation
Simple pagination generator
- Host: GitHub
- URL: https://github.com/simov/sr-pagination
- Owner: simov
- License: mit
- Created: 2013-04-18T09:19:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-24T13:28:28.000Z (over 12 years ago)
- Last Synced: 2025-06-09T19:12:47.912Z (7 months ago)
- Language: JavaScript
- Homepage: http://simov.github.io/sr-pagination/test/
- Size: 234 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sr-pagination
=======
Simple pagination generator.
> The **sr** prefix stands for *simpler*, which is comparative of *sim·ple* (Adjective)
> 1. Easily understood or done; presenting no difficulty.
> 2. Plain, basic, or uncomplicated in form, nature, or design; without much decoration or ornamentation.
##Install
- [bower][1]: sr-pagination
- [component][2]: simov/sr-pagination
- [npm][3]: sr-pagination
##Usage
Note that you can use this module with commonjs (nodejs), amdjs or as a global object in the browser.
```js
var result = pagination({page:1, links: 5, rows: 5, total: 50});
```
##Options
- **page**: current page
- **links**: visible page links
- **rows**: rows per page
- **total**: total number of all items
##Tests
Make sure you check out the [test][4] page.
[1]: http://sindresorhus.com/bower-components/
[2]: http://component.io/
[3]: https://npmjs.org/
[4]: http://simov.github.io/sr-pagination/test/