PaginateJs
A micro plugin for adding quickly pagination to any kind of element.
Simply this lib enables you to create an paginatination with any kind of element. Really simple with nearly zero configuration.
Advantages
- ~3KB
- without jQuery
- easy-to-use
Usage
- Require the lib
- Create container regarding pagination
<!-- the container with the elements to be paginated (in this case a simple list)--> Entry #1 Entry #2 Entry #3 Entry #4 Entry #5 Entry #6 <!-- the container that contains the page links -->
- Initialize plugin
;
- Reload page see how the pagination is built. :)
INFO
Currently the plugin doesn't support reducing of the buttons, so EVERY page button that is created is visible. Possibly implemented in future version.