lls-rc-pagination
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

License Version npm bundle size (minified) npm type definitions Build Status Coverage Status

lls-rc-pagination

Lightweight, customizable pagination widget using TypesScript and React 16

Demo

For example of the lls-rc-pagination, go to https://loopline-systems.github.io/lls-rc-pagination.

OR

To run that demo on your own computer:

Getting Started

Install

  npm i lls-rc-pagination -S

Import in component

import Pagination from 'lls-rc-pagination'
import 'lls-rc-pagination/dist/pagination.css'

Supported properties

{
  totalItems: number;
  onChange(pageNumber: number): void;
  defaultCurrPage?: number; // Default 1
  /** Maximum displayed buttons until view will switch to group mode. Default: 10 */
  maxViewBtnLength?: number;
  /** The length of displayed button group, supports only odd numbers. Default: 5 */
  btnGroupLength?: number;
  pageSize?: number; // Default: 100
  leftBtnTxt?: string; // Default: 'Previous page'
  rightBtnTxt?: string; // Default: 'Next page'
  marginTop?: number;
  /** To show page input element. Deafult: false */
  showPageInput?: boolean;
  pageInpLabel?: string; // Default: 'Go to:'
}

Readme

Keywords

Package Sidebar

Install

npm i lls-rc-pagination

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

111 kB

Total Files

20

Last publish

Collaborators

  • alllx