add dateRenderer
This commit is contained in:
parent
e43dc488e4
commit
93de461272
|
@ -36,6 +36,9 @@ function attachmentRenderer(params) {
|
||||||
}
|
}
|
||||||
function dateRenderer(params) {
|
function dateRenderer(params) {
|
||||||
const container = document.createElement("div")
|
const container = document.createElement("div")
|
||||||
|
const toggle = (e) => {
|
||||||
|
params.setValue(e.detail[0][0])
|
||||||
|
}
|
||||||
|
|
||||||
const datePickerInstance = new DatePicker({
|
const datePickerInstance = new DatePicker({
|
||||||
target: container,
|
target: container,
|
||||||
|
@ -44,5 +47,7 @@ function dateRenderer(params) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
datePickerInstance.$on('change', toggle)
|
||||||
|
|
||||||
return container
|
return container
|
||||||
}
|
}
|
Loading…
Reference in New Issue