vue-datetime
vue-datetime copied to clipboard
It would be great if we get the closing reason.
Versions
- vue: 2.0.0
- vue-datetime: 1.0.0-beta.13
- luxon: 1.24.1
Description: I would like to know the closing reason for the DateTime picker popup and take action only it the user has confirmed the date. If the user has canceled the datepicker then don't take any action.
maybe something like this
close (reason) {
this.isOpen = false
this.$emit('close', reason)
},
confirm (datetime) {
this.datetime = datetime.toUTC()
this.emitInput()
this.close("confirm")
},
cancel () {
this.close("cancel")
},