add dateRenderer

This commit is contained in:
kevmodrome 2020-10-08 16:23:13 +02:00
parent e43dc488e4
commit 93de461272
1 changed files with 5 additions and 0 deletions

View File

@ -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
}