{"id":13755483,"url":"https://github.com/trendmicro-frontend/react-paginations","last_synced_at":"2025-09-04T14:32:35.184Z","repository":{"id":57167637,"uuid":"76965796","full_name":"trendmicro-frontend/react-paginations","owner":"trendmicro-frontend","description":"React Paginations component","archived":false,"fork":false,"pushed_at":"2023-09-22T14:01:03.000Z","size":1567,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-12-05T19:49:16.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://trendmicro-frontend.github.io/react-paginations","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trendmicro-frontend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-20T14:59:57.000Z","updated_at":"2023-09-22T14:01:07.000Z","dependencies_parsed_at":"2024-01-17T15:20:54.276Z","dependency_job_id":null,"html_url":"https://github.com/trendmicro-frontend/react-paginations","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-paginations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-paginations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-paginations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-paginations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trendmicro-frontend","download_url":"https://codeload.github.com/trendmicro-frontend/react-paginations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231970123,"owners_count":18453915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T10:00:55.015Z","updated_at":"2024-12-31T09:32:59.038Z","avatar_url":"https://github.com/trendmicro-frontend.png","language":"JavaScript","funding_links":[],"categories":["Trend Micro"],"sub_categories":["React Components"],"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)\n\n[![NPM](https://nodei.co/npm/@trendmicro/react-paginations.png?downloads=true\u0026stars=true)](https://nodei.co/npm/@trendmicro/react-paginations/)\n\nReact Paginations\n\nDemo: https://trendmicro-frontend.github.io/react-paginations\n\n## Installation\n\n1. Install the latest version of [react](https://github.com/facebook/react) and [react-paginations](https://github.com/trendmicro-frontend/react-paginations):\n\n  ```\n  npm install --save react @trendmicro/react-paginations\n  ```\n\n2. At this point you can import `@trendmicro/react-paginations` and its styles in your application as follows:\n\n  ```js\n  import { TablePagination } from '@trendmicro/react-paginations';\n\n  // Be sure to include styles at some point, probably during your bootstraping\n  import '@trendmicro/react-paginations/dist/react-paginations.css';\n  ```\n\n## Usage\n\n#### TablePagination\n\n```js\n\u003cTablePagination\n    type=\"full\"\n    page={this.state.page}\n    pageLength={this.state.pageLength}\n    totalRecords={this.state.totalRecords}\n    onPageChange={({ page, pageLength }) =\u003e {\n        this.setState({ page, pageLength })\n    }}\n    prevPageRenderer={() =\u003e \u003ci className=\"fa fa-angle-left\" /\u003e}\n    nextPageRenderer={() =\u003e \u003ci className=\"fa fa-angle-right\" /\u003e}\n/\u003e\n```\n\n## API\n\n### Properties\n\n#### TablePagination\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\ntype | String | 'full' | 'full', 'reduced', or 'minor'\npage | Number | 1 |\npageLength | Number | 10 |\npageLengthMenu | Array | [10, 25, 50, 100] |\ndropup | Boolean | false | The menu will open above the dropdown toggle, instead of below it.\ntotalRecords | Number | 0 |\nonPageChange | Function | |\nprevPageRenderer | Function | |\nnextPageRenderer | Function | |\npageRecordsRenderer | Function({ totalRecords, from, to }) | |\npageLengthRenderer | Function({ pageLength }) |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-paginations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendmicro-frontend%2Freact-paginations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-paginations/lists"}