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';
|
|
|
|
|
|
|
|
<ComboBox previousLabel='Previous' nextLabel='Next' pageItems={pageItems} perPageItems={perPageItems}/>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ---------------------- | ----------------- | :------: | ---------------------------- | ------- | -------------------------------------------- |
|
|
|
|
| `pageItems` | `object` | - | - | - | Paging combo box items |
|
|
|
|
| `perPageItems` | `object` | ✅ | - | - | Items per page combo box items |
|
|
|
|
| `previousLabel` | `string` | - | - | `Previous`| Label for previous button |
|
|
|
|
| `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 |
|
|
|
|
| `openDirection` | `string` | - | `top`, `bottom` | `bottom`| Indicates opening direction of combo box |
|