🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

uxcore-pagination

Package Overview
Dependencies
Maintainers
7
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-pagination

pagination ui component for react

latest
Source
npmnpm
Version
0.8.5
Version published
Maintainers
7
Created
Source

uxcore-pagination

pagination ui component for react
NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads Sauce Test Status

setup develop environment

$ git clone https://github.com/uxcore/uxcore-pagination
$ cd uxcore-pagination
$ npm install
$ npm start

Usage

var Pagination = require('uxcore-pagination');
React.render(
	<Pagination onChange={onChange} total={50} />, document.getElementById('target'));

demo

http://uxcore.github.io/uxcore/components/pagination/

API

Props

参数说明类型默认值
locale语言(zh-cn/en-us)stringzh-cn
current当前页数number1
total数据总数number/jsx0
totalSizeOffset数据总数偏移,会在计算分页时加在total上进行计算,用于占位number0
pageSize每页条数number10
onChange页码改变的回调,参数是改变后的页码functionnoop
showTotal是否显示共多少条booleanfalse
showQuickJumper是否可以快速跳转至某页boolfalse
showSizeChanger是否可以改变 pageSizeboolfalse
sizeOptionssizeChanger 显示的可选 pageSizearray[10, 20, 30, 40]
onShowSizeChangepageSize 变化的回调functionnoop
className当为「mini」时,是小尺寸分页string
simple当添加该属性时,显示为简单分页object
getSelectPopupContainer指定下拉选择框渲染的容器function():HTML Element插在 body 下的一个 div

Keywords

react

FAQs

Package last updated on 03 Mar 2023

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