Date selected event
hichamhargal opened this issue · 2 comments
hichamhargal commented
Hi, thank you for this awesome work.
I have just a question, is there any event where the date is selected in the datepicker ?
I tried to find the response in the documentation but there is nothing about events.
Thank you again.
edisdev commented
Hi @hichamhargal , thank you so much too :)
You can this with change event :)
<template>
<div id="app">
<Datepicker
v-model="selectedDate"
@change="dateChangeEvent"/>
</div>
</template>
<script>
import Datepicker from '@/components/datepicker.vue'
export default {
name: 'app',
components: {
Datepicker
},
data () {
return {
selectedDate: null
}
},
methods: {
dateChangeEvent (event) {
console.log('date is selected =>', event)
}
}
}
</script>hichamhargal commented
That is what I did. Thanks again 🙏