1.0.18 • Published 5 years ago

@crpt/react-pagination v1.0.18

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

react-pagination

Travis npm package Coveralls

Pagination component with pages count and arrows.

Usage

import { Pagination } from  "@crpt/react-pagination";

<Pagination pagesCount={22} selected={1} onSelect={num => alert(num)} />
PropNameОписаниеПример
theme: ObjectCurrent theme.<Pagination pagesCount={22} selected={1} onSelect={num => alert(num)} theme={defaultTheme}/>
pagesCount: Number (Required)Pages count.<Pagination pagesCount={22} selected={1} onSelect={num => alert(num)} />
selected: Number (Required)Selected page.<Pagination pagesCount={22} selected={1} onSelect={num => alert(num)} />
onSelect: Function (Required)Fires on page change.<Pagination pagesCount={22} selected={1} onSelect={num => alert(num)} />
isInfinite: BooleanRemoves left arrow on 1 page and hides pages count.<Pagination pagesCount={22} selected={1} isInfinite />
leftPaginationText: StringText is located near left arrow icon
rightPaginationText: StringText is located near right arrow icon
pageCounterInvisible: boolWhen true the page counter (there is input field between the arrows) is hidden. And TotalPages field is invisible too.
isBelowZeroDisabled: boolIt is disabled changing page value from 0 to max
isUpperThenMaxDisabled: boolIt is disabled changing page value from max to 0
withoutTotalPages: boolIt's disabled total pages information at the end of the paginator
isSeparatedPageCounter: boolIt's switched page counter to view with a lot of pages
1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago