From 93de4612726d770453e254a03121af1622f7e1ee Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 8 Oct 2020 16:23:13 +0200 Subject: [PATCH] add dateRenderer --- packages/standard-components/src/DataGrid/customRenderer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/standard-components/src/DataGrid/customRenderer.js b/packages/standard-components/src/DataGrid/customRenderer.js index 3869aa9c29..1b9bec0aae 100644 --- a/packages/standard-components/src/DataGrid/customRenderer.js +++ b/packages/standard-components/src/DataGrid/customRenderer.js @@ -36,6 +36,9 @@ function attachmentRenderer(params) { } function dateRenderer(params) { const container = document.createElement("div") + const toggle = (e) => { + params.setValue(e.detail[0][0]) + } const datePickerInstance = new DatePicker({ target: container, @@ -44,5 +47,7 @@ function dateRenderer(params) { } }); + datePickerInstance.$on('change', toggle) + return container } \ No newline at end of file