# @trendmicro/react-paginations

> Trend Micro Components: React Paginations

Latest version **0.6.1** (published 2017-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @trendmicro/react-paginations
pnpm add @trendmicro/react-paginations
yarn add @trendmicro/react-paginations
bun add @trendmicro/react-paginations
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.1 |
| Published | 2017-10-06 |
| First published | 2016-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Cheton Wu |
| Maintainers | cheton, trendmicro-frontend |
| Keywords | react, react-paginations, table, pagination |

## Links

- npm: https://www.npmjs.com/package/@trendmicro/react-paginations
- Repository: https://github.com/trendmicro-frontend/react-paginations
- Issues: https://github.com/trendmicro-frontend/react-paginations/issues
- npm.io page: https://npm.io/package/@trendmicro/react-paginations

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [@trendmicro/react-anchor](https://npm.io/package/@trendmicro/react-anchor.md) ^0.5.4

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.6.1 (latest) — 2017-10-06
- 0.6.0 — 2017-06-23
- 0.5.13 — 2017-06-23
- 0.5.12 — 2017-06-22
- 0.5.11 — 2017-06-22
- 0.5.10 — 2017-04-20
- 0.5.9 — 2017-04-20
- 0.5.8 — 2017-04-19
- 0.5.7 — 2017-03-13
- 0.5.6 — 2017-03-10
- 0.5.5 — 2017-03-03
- 0.5.4 — 2017-03-03
- 0.5.3 — 2017-03-03
- 0.5.2 — 2017-03-02
- 0.5.1 — 2016-12-26
- … 1 more at https://npm.io/package/@trendmicro/react-paginations/versions

## README

# react-paginations [![build status](https://travis-ci.org/trendmicro-frontend/react-paginations.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-paginations) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-paginations/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-paginations?branch=master)

[![NPM](https://nodei.co/npm/@trendmicro/react-paginations.png?downloads=true&stars=true)](https://nodei.co/npm/@trendmicro/react-paginations/)

React Paginations

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

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-paginations](https://github.com/trendmicro-frontend/react-paginations):

  ```
  npm install --save react @trendmicro/react-paginations
  ```

2. At this point you can import `@trendmicro/react-paginations` and its styles in your application as follows:

  ```js
  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

```js
<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

Name | Type | Default | Description 
:--- | :--- | :------ | :----------
type | String | 'full' | 'full', 'reduced', or 'minor'
page | Number | 1 |
pageLength | Number | 10 |
pageLengthMenu | Array | [10, 25, 50, 100] |
dropup | Boolean | false | The menu will open above the dropdown toggle, instead of below it.
totalRecords | Number | 0 |
onPageChange | Function | |
prevPageRenderer | Function | |
nextPageRenderer | Function | |
pageRecordsRenderer | Function({ totalRecords, from, to }) | |
pageLengthRenderer | Function({ pageLength }) |

## License

MIT

---
_Source: https://npm.io/package/@trendmicro/react-paginations · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
