3.0.7 • Published 6 months ago

@types/react-js-pagination v3.0.7

Weekly downloads
7,373
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-js-pagination

Summary

This package contains type definitions for react-js-pagination (https://github.com/vayser/react-js-pagination).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-js-pagination.

index.d.ts

// 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 | undefined;
    pageRangeDisplayed?: number | undefined;
    prevPageText?: string| React.ReactElement | undefined;
    nextPageText?: string | React.ReactElement | undefined;
    lastPageText?: string | React.ReactElement | undefined;
    firstPageText?: string | React.ReactElement | undefined;
    disabledClass?: string | undefined;
    hideDisabled?: boolean | undefined;
    hideNavigation?: boolean | undefined;
    innerClass?: string | undefined;
    itemClass?: string | undefined;
    itemClassFirst?: string | undefined;
    itemClassPrev?: string | undefined;
    itemClassNext?: string | undefined;
    itemClassLast?: string | undefined;
    linkClass?: string | undefined;
    activeClass?: string | undefined;
    activeLinkClass?: string | undefined;
    linkClassFirst?: string | undefined;
    linkClassPrev?: string | undefined;
    linkClassNext?: string | undefined;
    linkClassLast?: string | undefined;
    hideFirstLastPages?: boolean | undefined;
    getPageUrl?: ((pageNumber: number) => string) | undefined;
}
declare const Pagination: React.ClassicComponentClass<ReactJsPaginationProps>;

export default Pagination;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:20:51 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Ernesto Cruz.