@cloukit/pagination
Version:
19 lines (18 loc) • 652 B
TypeScript
/*!
* @license MIT
* Copyright (c) 2017 Bernhard Grünewaldt - codeclou.io
* https://github.com/cloukit/legal
*/
import { PaginationItem } from '../pagination.model';
declare const createFiller: () => PaginationItem;
/**
* Provides the pages with a total of seven. See Unit Test.
* Examples:
* CASE 1: 1 2 3 *4* 5 6 7
* 1 2 3 *4* 5
* CASE 2: 1 2 3 *4* 5 .. 50
* CASE 3: 1 .. 46 *47* 48 49 50
* CASE 4: 1 .. 49 *50* 51 .. 90
*/
declare const calculatePaginationItems: (total: number, current: number) => PaginationItem[];
export { calculatePaginationItems, createFiller };