Pagination.d.ts 964 B

12345678910111213141516171819
  1. import * as React from 'react';
  2. import { Direction } from './constants';
  3. import { PaginationOptions } from './types';
  4. interface PaginationProps {
  5. rowsPerPage: number;
  6. rowCount: number;
  7. currentPage: number;
  8. direction?: Direction;
  9. paginationRowsPerPageOptions?: number[];
  10. paginationIconLastPage?: React.ReactNode;
  11. paginationIconFirstPage?: React.ReactNode;
  12. paginationIconNext?: React.ReactNode;
  13. paginationIconPrevious?: React.ReactNode;
  14. paginationComponentOptions?: PaginationOptions;
  15. onChangePage: (page: number) => void;
  16. onChangeRowsPerPage: (numRows: number, currentPage: number) => void;
  17. }
  18. declare function Pagination({ rowsPerPage, rowCount, currentPage, direction, paginationRowsPerPageOptions, paginationIconLastPage, paginationIconFirstPage, paginationIconNext, paginationIconPrevious, paginationComponentOptions, onChangeRowsPerPage, onChangePage, }: PaginationProps): JSX.Element;
  19. export default Pagination;