We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reset the currently selected date range?
The text was updated successfully, but these errors were encountered:
I am using it like this:
<VueRangedatePicker v-if="!reset"></VueRangedatePicker> ............................ ............................ data(){ reset: false, }, methods: { submitForm(){ //form on submit success this.reset = true; setTimeout(()=>{ this.reset = false }, 100) } }
The idea here is rerendering the component
Sorry, something went wrong.
You could also reset the component date object directly, via $refs:
this.$refs.rangedatepicker.$data.dateRange = {};
Where 'rangedatepicker' is the ref attribute set on the component.
No branches or pull requests
How to reset the currently selected date range?
The text was updated successfully, but these errors were encountered: