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;
}
)
view methods
setItemsPerPage(value: number): void
getItemsPerPage(): number
getTotalPages(): number
npm i @writetome51/pagination-page-info
// if using TypeScript:
import { PaginationPageInfo } from '@writetome51/pagination-page-info';
// if using ES5 JavaScript:
var PaginationPageInfo =
require('@writetome51/pagination-page-info').PaginationPageInfo;