Closed vvtense closed 5 years ago
use the disabledDays
<date-picker v-model="value" type="month" :disabledDays="disabledDays" format="YYYY-MM" ></date-picker>
methods: {
disabledDays (date) {
const month = new Date(date).getMonth() + 1
if (month % 3 === 0) {
return false
}
return true
}
}
Thank you very much. This is an excellent library, by the way. Very useful and well-made
I have a datepicker with type="month" and range as pictured below
Is there a way to only enable quarter months, i.e.: I only wish to enable:
everything else should be disabled. I cannot figure out how to accomplish this in the current version of vue2-datepicker. Any help would be appreciated, thank you.