mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* fix getPageUrl type * add test * linting semicolon linting Co-Authored-By: Andrew M. <r3nya@ya.ru>
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
// Type definitions for react-js-pagination 3.0
|
|
// Project: https://github.com/vayser/react-js-pagination
|
|
// Definitions by: Ernesto Cruz <https://github.com/netoisc>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
|
|
export interface ReactJsPaginationProps {
|
|
totalItemsCount: number;
|
|
onChange: (pageNumber: number) => void;
|
|
activePage: number;
|
|
itemsCountPerPage?: number;
|
|
pageRangeDisplayed?: number;
|
|
prevPageText?: string| React.ReactElement;
|
|
nextPageText?: string | React.ReactElement;
|
|
lastPageText?: string | React.ReactElement;
|
|
firstPageText?: string | React.ReactElement;
|
|
disabledClass?: string;
|
|
hideDisabled?: boolean;
|
|
hideNavigation?: boolean;
|
|
innerClass?: string;
|
|
itemClass?: string;
|
|
itemClassFirst?: string;
|
|
itemClassPrev?: string;
|
|
itemClassNext?: string;
|
|
itemClassLast?: string;
|
|
linkClass?: string;
|
|
activeClass?: string;
|
|
activeLinkClass?: string;
|
|
linkClassFirst?: string;
|
|
linkClassPrev?: string;
|
|
linkClassNext?: string;
|
|
linkClassLast?: string;
|
|
hideFirstLastPages?: boolean;
|
|
getPageUrl?: (pageNumber: number) => string;
|
|
}
|
|
declare const Pagination: React.ClassicComponentClass<ReactJsPaginationProps>;
|
|
|
|
export default Pagination;
|