Skip to content

Commit 1f7ad83

Browse files
committed
Update README.md
1 parent b966e20 commit 1f7ad83

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Vue.js pagination component for Laravel paginators that works with Bootstrap.
77

88
* [Vue.js](https://vuejs.org/) 2.x
99
* [Laravel](http://laravel.com/docs/) 5.x
10-
* [Bootstrap](http://getbootstrap.com/) 3/4
10+
* [Bootstrap](http://getbootstrap.com/) 4
1111

1212
## Install
1313

@@ -74,27 +74,17 @@ Prev/Next buttons can be customized using the `prev-nav` and `next-nav` slots:
7474
</pagination>
7575
```
7676

77-
### Show disabled buttons
78-
79-
Disabled buttons (when there is no next or previous page to navigate to) can be shown instead of hidden:
80-
81-
```html
82-
<pagination :data="laravelData" :show-disabled="true"></pagination>
83-
```
84-
8577
## API
8678

8779
### Props
8880

8981
| Name | Type | Description |
9082
| --- | --- | --- |
9183
| `data` | Object | An object containing the structure of a [Laravel paginator](https://laravel.com/docs/5.7/pagination) response or a [Laravel API Resource](https://laravel.com/docs/5.7/eloquent-resources) response. |
92-
| `limit` | Number | (optional) Limit of pages to be rendered. `0` shows all pages (default). `-1` will hide numeric pages and leave only arrow navigation. Any positive integer (e.g. `2`) will define how many pages should be shown on either side of the current page when only a range of pages are shown (see below for example output). |
84+
| `limit` | Number | (optional) Limit of pages to be rendered. `0` shows all pages (default). `-1` will hide numeric pages and leave only arrow navigation. Any positive integer (e.g. `2`) will define how many pages should be shown on either side of the current page when only a range of pages are shown. |
9385
| `show-disabled` | Boolean | (optional) Show disabled prev/next buttons instead of hiding them. `false` hides disabled buttons (default). `true` shows disables buttons. |
94-
95-
**Example `limit`**
96-
97-
![screen shot 2018-01-12 at 4 47 50 pm](https://user-images.githubusercontent.com/203882/34885624-8001513e-f7b8-11e7-9922-236e2b07caa0.png)
86+
| `size` | String | (optional) One of `small`, `default` or `large` |
87+
| `align` | String | (optional) One of `left` (default), `center` or `right` |
9888

9989
### Events
10090

0 commit comments

Comments
 (0)