Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trendmicro/react-paginations

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trendmicro/react-paginations

Trend Micro Components: React Paginations

  • 0.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
385
increased by19.57%
Maintainers
2
Weekly downloads
 
Created
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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc