0.1.1 • Published 5 years ago

rc-pagination-ex v0.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

rc-pagination


React Pagination Component.

NPM version build status Test coverage gemnasium deps node version npm download

Development

npm install
npm start

Example

http://localhost:3000/examples/

online example: http://react-component.github.io/pagination/examples/

Feature

  • support ie8,ie8+,chrome,firefox,safari

Install

rc-pagination

Usage

var Pagination = require('rc-pagination');
var React = require('react');
React.render(<Pagination />, container);

API

ParameterDescriptionTypeDefault
defaultCurrentuncontrolled current pageNumber1
currentcurrent pageNumberundefined
totalitems total countNumber0
defaultPageSizedefault items per pageNumber10
pageSizeitems per pageNumber10
onChangepage change callbackFunction(current, pageSize)-
showSizeChangershow pageSize changerBoolfalse
pageSizeOptionsspecify the sizeChanger selectionsArray'10', '20', '30', '40'
onShowSizeChangepageSize change callbackFunction(current, size)-
hideOnSinglePagehide on single pageBoolfalse
showQuickJumpershow quick goto jumperBool / Objectfalse / {goButton: true}
showTotalshow total records and rangeFunction(total, from, to)-
classNameclassName of paginationString-
simplewhen set, show simple pagerObjectnull
localeto set l10n configObjectzh_CN
stylethe style of paginationObject{}
showLessItemsshow less page itemsBoolfalse
showTitleshow page items titleBooltrue
itemRendercustom page item rendererFunction(current, type: 'page''prev''next''jump-prev''jump-next', element): React.ReactNode(current, type, element) => element

License

rc-pagination is released under the MIT license.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago