praveenpuglia / vuetify-daterange-picker

The missing date range picker for Vuetify JS you have been looking for.
https://vuetify-daterange-picker.gitbook.io/docs
MIT License
197 stars 59 forks source link

Update range on model change #51

Closed boiangeorgiev closed 4 years ago

boiangeorgiev commented 5 years ago

Hello and thank you for the great component! Wish it is incorporated into Vuetify in the future.

In the meantime I wish to request a new feature - to be able to update the selected date range based on the model provided. I think with a simple watcher on value should do the trick.

praveenpuglia commented 5 years ago

Do you mean emitting values as you type?

If you mean to say you want to provide default values to the component through v-model, you can already do that.

Example:

<v-daterange v-model="range"></v-daterange>

<script>
export default {
  data: () {
    range: { start: '2018-12-12', end: '2019-01-01' }
  }
}
</script>
praveenpuglia commented 4 years ago

Closing since no activity

boiangeorgiev commented 4 years ago

Sorry, somehow completely missed your reply on May 10. The feature in question is the ability of the visual to react on model change, I mean when we change the date range programatically the displayed calendars to change respectively. Thanks!