I using this plugin and it very good
so I want to set a Value
Hi @hardworkerstudio , Personnaly I handle that on the range-picker by simulate a click on the day using the focustDate() method, when I only have the start or end date.
// waiting for the calendar display the date and focus it
await this.$refs.calendar.focusDate(date)
// Get the current dom element focused and trigger a click on it
document.activeElement.dispatchEvent(new Event('click'));
You can use updateValue: https://vcalendar.io/datepicker.html#use-custom-slot
this.$refs.calendar.updateValue(date)
Ho to updateValue with a range of date ?
@nathanreyes any way to update the v-model range?
this.$refs.calendar.updateValue(date) only update single date. How set date range?
It turned out to update range like this this.$refs.calendar.updateValue({start: new Date(), end: new Date()})
Most helpful comment
@nathanreyes any way to update the v-model range?