🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

osifo-rc-pagination

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osifo-rc-pagination

customized pagination ui component for react

latest
Source
npmnpm
Version
1.17.2
Version published
Maintainers
1
Created
Source

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 ie9,ie9+,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
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'
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.

Keywords

react

FAQs

Package last updated on 27 Sep 2018

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