Closed skstuder closed 5 months ago
By calling updateInternalModelValue
it will just select dates internally in the picker, not the v-model
bind.
@Jasenkoo I just tried to pass a week-picker
range
into that function and got this error.
Is it setup to handle the [[Date, Date], [Date, Date]] format?
@skstuder It is not in that format, as the internal model is only Date
or Date[]
, in this case, you pass the starting date from both weeks instead of double array.
Okay so just: [any date from week 1, any date from week 2]?
Didn't try it, but it should work. If not, you'll need to use the first date in the week.
I was hoping to use something similar to
updateInternalModelValue
to update the picker values, but without changing the model value itself.We have an explicit button for selecting dates. So we need a way to update picker values, show the range, but not actually change the model value until they hit our select button that fires
selectDate()
Here is our usecase for reference
We want to let them see what 52 weeks in the past looks like as a selection, without making the selection for them until the click 'select date` button.