Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit db697c9

Browse files
committed
Added API Example
1 parent ce89b55 commit db697c9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77

88
<p align="center">
9-
A Vue.js server side component to create dynamic tables. Compatible with Vue 2.x and Laravel.
9+
A Vue.js component to create dynamic tables. Compatible with Vue 2.x and Laravel.
1010
</p>
1111

1212
<p align="center">
@@ -55,6 +55,8 @@ new Vue({
5555
});
5656
```
5757

58+
ClienSide component is comming soon..
59+
5860
### Available Props
5961
| Prop | Type | Default | Description |
6062
|-------------|---------|----------------|-------------------------------------------------------------|
@@ -70,6 +72,20 @@ new Vue({
7072
| change | Handle show limit changed. Gets object with new show limit and current page `{perpage: 10, page: 2}`|
7173
| searching | Handles search input. Gets string as parameter |
7274

75+
### Data API Example
76+
```javascript
77+
{
78+
"pagination": {
79+
"total": 0,
80+
"to": 0,
81+
"from": 0,
82+
"per_page": 10,
83+
"current_page": 1
84+
},
85+
"data": [...items]
86+
}
87+
```
88+
7389
### Columns
7490
Each column object needs a `name` and `key` attributes.
7591
```javascript

0 commit comments

Comments
 (0)