0
I tried to use the duetDatePicker in a Vue CodeSandbox, the following works:
<duet-date-picker
@duetChange="handleInput"
identifier="date"
:localization.prop="localisation_uk"
>
Along with the above, my methods object contained the handleInput
function declaration.
Check the App.vue
file in the codesandbox for details.
- [Vuejs]-How to display components of a child `router-view` that is nested within parent `router-view` in Vue JS?
- [Vuejs]-Vuejs button not clickable when in v-if
0
I was able to get it to work the old fashion way…
onMounted(() => {
// Select the date picker component
const date = document.getElementById("date-picker");
// Listen for when date is selected
date.addEventListener("duetChange", function (e) {
console.log("selected date", e.detail.valueAsDate);
});
});
<duet-date-picker id="date-picker"
@duetChange="handleInput"
identifier="date"
:localization.prop="localisation_uk"
>
Source:stackexchange.com