From 885228aede1892a4a37334679149c48788c45795 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 10 Jan 2020 21:58:43 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index d05a2945..02c47214 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -59,13 +59,27 @@ What this grid needs to do: - On receipt of successful response - update the paging values - update the persistent form settings with the current grid selections for paging etc - - generate the column headings - + - generate the column headers + - They will have locale keys so this grid fetches the keys as necessary at this point as it could change dynamically almost + - Generate the Item slot template (which I've never done in code before but only in the template itself so needs research) + - set the property names in the incoming data to the correct matching headers + - set display filters based on locale settings (i.e. currency, datetime filter which converts to local time offset etc) - fill the rows + - format? - On fail - Do something - set loading property to false + + +TODO: + - At server widgetlist route: + - Modify route to accept vp paramenter for small viewport + - Add mock column data and include it in the response for grid queries + - modify server to return alternate list of just names and id's if vp paramenter is present and xs (may be other values in future so check for xs specifically) + - this route could actually be just a defined c# object since it's always going to be one column and one id like namevalue list + - full width all columns though would be different kettle of fish entirely so this is a good time to experiment and figure it out + */ export default { created() {