generic-paginate
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -36,2 +36,4 @@ var Paginator = function( options ){ | ||
var out = {}; | ||
out.next = pageNumber < pageCount ? pageNumber + 1 : null; | ||
out.prev = pageNumber > 1 ? pageNumber - 1 : null; | ||
out.page = pageNumber; | ||
@@ -38,0 +40,0 @@ out.range = range; |
{ | ||
"name": "generic-paginate", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A simple class that calculates pagination params that is easly usable in a View", | ||
@@ -5,0 +5,0 @@ "main": "lib/paginate.js", |
@@ -44,2 +44,4 @@ Generic-paginate | ||
* pagination = { | ||
* next: 7, | ||
* prev: 5, | ||
* page: 6, | ||
@@ -46,0 +48,0 @@ * range: { '3': '', '4': '', '5': '', '6': 'active', '7': '' }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5036
45
106