🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/trendmicro-frontend/react-paginations

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/trendmicro-frontend/react-paginations

Source
Go Modules
Version
v0.6.1
Version published
Created
Source

react-paginations build status Coverage Status

NPM

React Paginations

Demo: https://trendmicro-frontend.github.io/react-paginations

Installation

  • Install the latest version of react and react-paginations:
npm install --save react @trendmicro/react-paginations
  • At this point you can import @trendmicro/react-paginations and its styles in your application as follows:
import { TablePagination } from '@trendmicro/react-paginations';

// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-paginations/dist/react-paginations.css';

Usage

TablePagination

<TablePagination
    type="full"
    page={this.state.page}
    pageLength={this.state.pageLength}
    totalRecords={this.state.totalRecords}
    onPageChange={({ page, pageLength }) => {
        this.setState({ page, pageLength })
    }}
    prevPageRenderer={() => <i className="fa fa-angle-left" />}
    nextPageRenderer={() => <i className="fa fa-angle-right" />}
/>

API

Properties

TablePagination

NameTypeDefaultDescription
typeString'full''full', 'reduced', or 'minor'
pageNumber1
pageLengthNumber10
pageLengthMenuArray[10, 25, 50, 100]
dropupBooleanfalseThe menu will open above the dropdown toggle, instead of below it.
totalRecordsNumber0
onPageChangeFunction
prevPageRendererFunction
nextPageRendererFunction
pageRecordsRendererFunction({ totalRecords, from, to })
pageLengthRendererFunction({ pageLength })

License

MIT

FAQs

Package last updated on 06 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts