This commit is contained in:
2020-01-29 19:24:26 +00:00
parent ca102a50f6
commit c83b3b9fc5

View File

@@ -118,13 +118,26 @@ export default {
that.apiBaseUrl + "?" + window.$gz.api.buildQuery(listOptions);
window.$gz.api.get(listUrl).then(res => {
that.loading = false;
that.Items = res.data;
that.totalItems = res.paging.count;
//build that.headers here
that.headers = buildHeaders(res.columns);
//Post process data here and then set that.records
that.records = buildRecords(res.data);
});
}
}
};
/* Xeslint-disable */
//Called by getDataFromApi on retrieval of list with columnData
function buildHeaders(columnData) {
//iterate columns, build headers and return
}
//Called by getDataFromApi on retrieval of list with columnData
function buildRecords(listData) {
//iterate columns, build headers and return
}
//DataTable component
//https://vuetifyjs.com/en/components/data-tables#paginate-and-sort-server-side
/*