1.20.18 • Published 5 years ago

accessible-rc-pagination v1.20.18

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

rc-pagination


React Pagination Component.

NPM version build status Test coverage Dependencies DevDependencies npm download

Development

npm install
npm start

Example

http://localhost:3000/examples/

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

Feature

  • support ie9,ie9+,chrome,firefox,safari

Install

rc-pagination

Usage

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

API

ParameterDescriptionTypeDefault
disableddisable paginationBool-
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
showPrevNextJumpersshow jump-prev, jump-nextBooltrue
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
prevIconspecifict the default previous iconReactNode | (props: PaginationProps) => ReactNode
nextIconspecifict the default previous iconReactNode | (props: PaginationProps) => ReactNode
jumpPrevIconspecifict the default previous iconReactNode | (props: PaginationProps) => ReactNode
jumpNextIconspecifict the default previous iconReactNode | (props: PaginationProps) => ReactNode

License

rc-pagination is released under the MIT license.

1.20.18

5 years ago

1.20.17

5 years ago

1.20.16

5 years ago

1.20.15

5 years ago

1.20.14

5 years ago

1.20.13

5 years ago

1.20.12

5 years ago

1.20.11

5 years ago

0.0.1

5 years ago

1.20.10

5 years ago

1.20.9

5 years ago

1.20.8

5 years ago