Socket
Socket
Sign inDemoInstall

@trendmicro/react-paginations

Package Overview
Dependencies
8
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @trendmicro/react-paginations

Trend Micro Components: React Paginations


Version published
Weekly downloads
255
decreased by-9.57%
Maintainers
2
Install size
268 kB
Created
Weekly downloads
 

Readme

Source

react-paginations build status Coverage Status

NPM

React Paginations

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

Installation

  1. Install the latest version of react and react-paginations:
npm install --save react @trendmicro/react-paginations
  1. 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

Keywords

FAQs

Last updated on 06 Oct 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc