Skip to content

Intended to help a separate Paginator class paginate data. Specifically, this class contains the properties `itemsPerPage` and `totalPages`, which will be used by other classes

License

Notifications You must be signed in to change notification settings

writetome51/pagination-page-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaginationPageInfo

Constructor

constructor(

   private __dataSource: {
   	
        // dataTotal: number of items in entire dataset.
        // This must stay accurate after any actions that change the total, 
        // such as searches.
   
        dataTotal: number;
    }
) 

Methods

view methods
setItemsPerPage(value: number): void

getItemsPerPage(): number

getTotalPages(): number

Installation

npm i @writetome51/pagination-page-info

Loading

// if using TypeScript:
import { PaginationPageInfo } from '@writetome51/pagination-page-info';
// if using ES5 JavaScript:
var PaginationPageInfo = 
    require('@writetome51/pagination-page-info').PaginationPageInfo;

License

MIT

About

Intended to help a separate Paginator class paginate data. Specifically, this class contains the properties `itemsPerPage` and `totalPages`, which will be used by other classes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published