1.2.9 • Published 4 years ago

kk-react-pagination v1.2.9

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

KK React Pagination

npm package Travis Coverage Status

Pagination component for ReactJS

KK React Pagination

Installation / Download

NPM

npm install --save kk-react-pagination

Import

ES6:

import Pagination from 'kk-react-pagination';

import 'kk-react-pagination/lib/assets/style.css';

(optional) import 'kk-react-pagination/lib/assets/templates/simple.css';

or

(optional) import 'kk-react-pagination/lib/assets/templates/clean.css';

Examples

<pagination name="demo"> (content) </pagination>

(More examples you can find here)

Options

optiondefaultdescription
name'' (string)
pageSize5 (number)
startPage1 (number)
prevLabelprev (string or component)
nextLabelnext (string or component)
emptyListMsgNothing to display (string)
loaderLoading... (string or component)
aligncenter (string)left ; center ; right
onePageHidefalse (bool)Hide pagination when is only one page.
openPageByElementId0 (number)Must be unique.
displayedPages5 (number)How many page numbers should be visible while navigating.
requestFunction (Promice)The function that sends a request to the server and returns Promise.
componentFunction (ReactJS Component)This component will be used to render a single line from the list. Data provided by the server will be injected into it as properties.
elementListClass'' (string)Additional class on the tag containing the list of elements.
customClass'' (string)Additional class on the tag containing the pagination.
afterPageChangeFunctionCallback function after page change.
1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago