You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ A Vue.js pagination component for Laravel paginators that works with Semantic-UI.
4
+
+ A simple Vue.js sorting wrapper.
5
5
6
-
+ This is [on GitHub](https://github.com/vinayakkulkarni/laravel-vue-semantic-ui-pagination) so let me know if I've b0rked it somewhere, give me a star :star: if you like it :beers:
7
-
8
-
+ You can checkout the [Demo](https://goo.gl/xtZGF9)
6
+
+ This is [on GitHub](https://github.com/vinayakkulkarni/vuejs-sort) so let me know if I've b0rked it somewhere, give me a star :star: if you like it :beers:
|`data`| Object | An object containing the structure of a [Laravel paginator](https://laravel.com/docs/5.4/pagination) response. See below for default value. |
84
-
|`limit`| Number | (optional) Limit of pages to be rendered. Default `0` (unlimited links) `-1` will hide numeric pages and leave only arrow navigation. `3` will show 3 previous and 3 next numeric pages from current page. |
85
-
|`showDisabled`| Boolean | (optional) If set to true, will display left and right icons always. |
86
-
|`icon`| String | (optional) Default is `angle double`; Refer [Semantic-UI Icons](https://semantic-ui.com/elements/icon.html) for specifying which icons you want. |
87
-
|`size`| String | (optional) Default is `small`; Refer [Semantic-UI Menu Pagination](https://semantic-ui.com/collections/menu.html#pagination) for specifying the size of paginator. |
76
+
|`data`| Object | An object containing `sort` (you can set this at your backend) & `sorttype` (viz. Direction eg. `'asc'`, `'desc'`) |
77
+
|`icon`| String | (optional) Default is `chevron`; Refer [Semantic-UI Icons](https://semantic-ui.com/elements/icon.html) for specifying which icons you want. |
78
+
|`label`| String | (optional) Is responsible for the label that'll be displayed which will be clickable. |
88
79
89
80
```javascript
90
81
{
91
-
current_page:1,
92
-
data: [],
93
-
from:1,
94
-
last_page:1,
95
-
next_page_url:null,
96
-
per_page:10,
97
-
prev_page_url:null,
98
-
to:1,
99
-
total:0,
82
+
sort:1,
83
+
sorttype:'asc',
100
84
}
101
85
```
102
86
103
87
### :white_check_mark::ear: Events
104
88
105
89
| Name | Description |
106
90
| --- | --- |
107
-
|`change-page`| Triggered when a user changes page. Passes the new `page` index as a parameter. |
91
+
|`sort-data`| Triggered when a user changes `sort` & `sorttype`.|
0 commit comments