aspire-react-data-table
Version:
A simple to use declarative react based data table
21 lines (20 loc) • 1.03 kB
TypeScript
import * as React from 'react';
import { Direction } from './constants';
import { PaginationOptions } from './types';
interface PaginationProps {
rowsPerPage: number;
rowCount: number;
currentPage: number;
direction?: Direction;
paginationRowsPerPageOptions?: number[];
paginationIconLastPage?: React.ReactNode;
paginationIconFirstPage?: React.ReactNode;
paginationIconNext?: React.ReactNode;
paginationIconPrevious?: React.ReactNode;
paginationComponentOptions?: PaginationOptions;
onChangePage: (page: number) => void;
onChangeRowsPerPage: (numRows: number, currentPage: number) => void;
}
declare function Pagination({ rowsPerPage, rowCount, currentPage, direction, paginationRowsPerPageOptions, paginationIconLastPage, paginationIconFirstPage, paginationIconNext, paginationIconPrevious, paginationComponentOptions, onChangeRowsPerPage, onChangePage, }: PaginationProps): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof Pagination>;
export default _default;