v
v
vue-tables-2
Search…
Server Table
Getting started with server table
1
<div id="people">
2
<v-server-table url="/people" :columns="columns" :options="options"/>
3
</div>
Copied!
1
new Vue({
2
el: "#people",
3
data: {
4
columns: ['id', 'name', 'age'],
5
options: {
6
// see the options API
7
}
8
}
9
});
Copied!
All request data is passed in the following GET parameters:
    query
    limit
    page
    orderBy
    ascending
    byColumn
You need to return a JSON object containing two properties:
    data : array - An array of row objects with identical keys.
    count: integer - Total count before limit.
If you are calling a foreign API or simply want to use your own keys, refer to the `responseAdapter` option.
If you want to get the request parameters and send them to a different URL (e.g in order to export to Excel) use this.$refs.myTable.getRequestParams()
Last modified 10mo ago
Copy link