1.0.18 • Published 6 years ago

@crpt/react-pagination v1.0.18

Weekly downloads
5
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago