Repository URL to install this package:
|
Version:
2.1.16 ▾
|
import { ReactNode } from 'react';
/** FUNCTION */
export interface PaginationRenderProp {
(props: PaginationProps, state: PaginationState): ReactNode;
}
export interface PaginationProps {
className?: '';
pageCountInformation?: '';
/**
* @todo @name list SAME
* @todo needs to be inherited this typings from SelectDropDown
*/
pageNumberList?: Array<Object>;
children?: ReactNode;
paginationLimit: number;
defaultIndex: number;
/**
* renderProps
*/
renderWrapper?: PaginationRenderProp;
renderDropDown?: PaginationRenderProp;
renderPaginationWithArrows?: PaginationRenderProp;
renderLeftButton?: PaginationRenderProp;
renderPaginationInput?: PaginationRenderProp;
renderRightButton?: PaginationRenderProp;
onDecrement?: PaginationRenderProp;
onIncrement?: PaginationRenderProp;
state?: PaginationState;
onDropdownChange?: Function;
onPaginationInputChange?: Function;
onPaginationInputBlur?: Function;
}
export interface PaginationState {
count: number;
shouldDisableLeftIcon: boolean;
shouldDisableRightIcon: boolean;
decrementCount(): void;
incrementCount(limit: number): void;
setCount(value: number): void;
disableIcon(direction?: string): void;
enableIcon(direction?: string): void;
}