Simple pagination generator.
The sr prefix stands for simpler, which is comparative of sim·ple (Adjective)
- Easily understood or done; presenting no difficulty.
- Plain, basic, or uncomplicated in form, nature, or design; without much decoration or ornamentation.
Note that you can use this module with commonjs (nodejs), amdjs or as a global object in the browser.
var result = ;
- page: current page
- links: visible page links
- rows: rows per page
- total: total number of all items
Make sure you check out the test page.