@bazhe/paginator
Advanced tools
Comparing version 1.1.1 to 1.2.0
# @bazhe/paginator | ||
## 1.2.0 | ||
### Minor Changes | ||
- [`ac9b24e`](https://github.com/Blagoj5/pagination/commit/ac9b24ecea946ede610ca9ef5b54aa05cd00bc0e) Thanks [@Blagoj5](https://github.com/Blagoj5)! - Update readmes | ||
## 1.1.1 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@bazhe/paginator", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Pagination utilties for handling pagination logic", | ||
@@ -5,0 +5,0 @@ "author": "Blagoj Petrov", |
# @bazhe/paginator | ||
<!-- TODO: Add link to @bazhe/use-pagination, etc etc --> | ||
@bazhe/paginator provides utilities for handling your pagination. Used in: [@bazhe/use-pagination](https://www.npmjs.com/package/@bazhe/use-pagination), [@bazhe/with-pagination](https://www.npmjs.com/package/@bazhe/with-pagination), [@bazhe/pagination-wrapper](https://www.npmjs.com/package/@bazhe/pagination-wrapper) | ||
@bazhe/paginator provides utilities for handling your pagination. Used in: @bazhe/use-pagination, @bazhe/with-pagination, @bazhe/with-wrapper | ||
**Playground/Demo:** https://blagoj5.github.io/pagination/#playground | ||
**Full documentation:** https://blagoj5.github.io/pagination | ||
<!-- TODO: Full documentation on: link#use-pagination --> | ||
## Getting Started | ||
@@ -96,3 +95,3 @@ | ||
| constructor(perPage: number, links: number) | | The constructor that creates paginator object. Example: new Paginator(4, 10) | | ||
| build | \<T>(total_results: number, current_page?: number, items?: T[]) => PaginationResult | The main methods that returns the fully expected pagination result | | ||
| build | \<T>(total_results: number, current_page?: number, items?: T[]) => PaginationResult | The main method that returns the fully expected pagination result | | ||
| getFirstPage | (currentPage: number) => number | Gets first page, depending on the number of links (ex. buttons displayed in the pagination bar) | | ||
@@ -99,0 +98,0 @@ | getLastPage | (currentPage: number) => number | Gets last page, depending on the number of links (ex. buttons displayed in the pagination bar) | |
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
56625
141