From c83b3b9fc5e5068276e4ba39f7e9fa07ee6ee35d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Jan 2020 19:24:26 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index d6a49c52..f3ba1501 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -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 /*