JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Editor & Inputs › Facing difficulties with: Input. Suggestions welcome.
How do I handle two-way binding with Smart.DateRangeInput in Vue? Are Vue’s reactive data bindings sufficient?
Hi,
You can achieve this with a custom v-model wrapper for Vue:
<template> <smart-date-range-input :value="modelValue" @change="$emit('update:modelValue', $event.detail.value)" ></smart-date-range-input> </template> <script> export default { name: "DateRangeInputWrapper", props: { modelValue: String } }; </script>
Regards, Markov
Smart UI Team https://www.htmlelements.com/