1.0.24 • Published 13 days ago
@leafygreen-ui/pagination v1.0.24
Pagination
View on MongoDB.design
Installation
Yarn
yarn add @leafygreen-ui/pagination
NPM
npm install @leafygreen-ui/pagination
Example
Output HTML
Properties
Prop | Type | Description | Default |
---|---|---|---|
itemsPerPage | number | Number of items visible on the current page. | 10 |
itemsPerPageOptions | number[] | Options to be shown in the Select to indicate items per page. | 10,25,50 |
onItemsPerPageOptionChange | SelectProps'onChange' | onChange prop passed to the Select component that controls the items per page. | |
currentPage | number | Current index of page shown (starting from 1) | 1 |
onCurrentPageOptionChange | SelectProps'onChange' | onChange prop passed to the Select component that controls the current page index. | |
numTotalItems | number | Total number of records. | |
onBackArrowClick | AccessibleIconButtonProps'onClick' | Function called when the forward arrow icon is clicked | |
disableBackArrowButton | boolean | Disables the back arrow button. Back arrow button is only disabled on the first page by default | false |
onForwardArrowClick | AccessibleIconButtonProps'onClick' | Function called when the forward arrow icon is clicked | |
disableForwardArrowButton | boolean | Disables the forward arrow button. Forward arrow button is only disabled on the last page by default | false |
1.0.24
13 days ago
1.0.23
25 days ago
1.0.22
1 month ago
1.0.21
2 months ago
1.0.20
2 months ago
1.0.19
3 months ago
1.0.19-popover.0
4 months ago
1.0.18
7 months ago
1.0.17
7 months ago
1.0.16
8 months ago
1.0.9
11 months ago
2.0.0-alpha.0
10 months ago
2.0.0-alpha.1
10 months ago
1.0.11
9 months ago
1.0.10
10 months ago
1.0.15
8 months ago
1.0.14
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.8
11 months ago
1.0.7
12 months ago
1.0.6
12 months ago
1.0.8-next.7
12 months ago
1.0.8-next.6
12 months ago
1.0.8-next.5
12 months ago
1.0.8-next.4
12 months ago
1.0.8-next.3
12 months ago
1.0.8-next.2
12 months ago
1.0.8-next.1
12 months ago
1.0.8-next.0
12 months ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago