2019-07-18 13:40:50 +00:00
|
|
|
# Paging
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
Paging is used to navigate med content pages.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { Paging } from 'asc-web-components';
|
|
|
|
|
2019-08-05 12:53:32 +00:00
|
|
|
<ComboBox
|
|
|
|
previousLabel='Previous'
|
|
|
|
nextLabel='Next'
|
|
|
|
pageItems={pageItems}
|
|
|
|
countItems={countItems}
|
|
|
|
previousAction={previousAction}
|
|
|
|
nextAction={nextAction}
|
|
|
|
openDirection='bottom'
|
|
|
|
disablePrevious={false}
|
|
|
|
disableNext={false}
|
|
|
|
/>
|
2019-07-18 13:40:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ---------------------- | ----------------- | :------: | ---------------------------- | ------- | -------------------------------------------- |
|
2019-07-29 14:25:04 +00:00
|
|
|
| `pageItems` | `array` | - | - | - | Paging combo box items |
|
2019-08-05 12:53:32 +00:00
|
|
|
| `countItems` | `array` | - | - | - | Items per page combo box items |
|
2019-07-29 14:25:04 +00:00
|
|
|
| `previousLabel` | `string` | - | - | `Previous`| Label for previous button |
|
2019-07-18 13:40:50 +00:00
|
|
|
| `nextLabel` | `string` | - | - | `Next` | Label for next button |
|
|
|
|
| `previousAction` | `function` | - | - | - | Action for previous button |
|
2019-07-19 09:13:43 +00:00
|
|
|
| `nextAction` | `function` | - | - | - | Action for next button |
|
2019-07-29 14:25:04 +00:00
|
|
|
| `openDirection` | `string` | - | `top`, `bottom` | `bottom`| Indicates opening direction of combo box |
|
|
|
|
| `disablePrevious` | `bool` | - | - | `false` | Set previous button disabled |
|
|
|
|
| `disableNext` | `bool` | - | - | `false` | Set next button disabled |
|
2019-08-14 14:24:01 +00:00
|
|
|
| `selectedPageItem` | `object` | - | - | - | Initial value for pageItems |
|
|
|
|
| `selectedCountItem` | `object` | - | - | - | Initial value for countItems |
|