-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
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
Disable specific days of the week #12
Comments
Duplicate of #7 |
I think this issue and the #7 are slightly differents, the #7 it's about apply a style to specific days, this issue is about make certains days unselectable by the user. Par exemple, the datepicker of this site https://wffranco.github.io/vue-strap/#datepicker |
In 0.4.0, you can use date patterns with the <v-date-picker
:disabled-dates='disabledDates'>
</v-date-picker> export default {
data() {
return {
disabledDates: { weekdays: [1, 7] },
};
}
} For more information about date patters, you can reference the README for more info about date patterns, as the documentation has not yet been updated to explain them fully. Also, the website uses this very example for the date picker demo. |
Nathan, really great work, thank you! Can we distinguish between disabled dates and, hm, 'unselectable' dates. For example, if sat and sun are unselectable, you could still pick friday until monday, but if some dates are disabled you could not select after those? |
Yes, what you describe is how it should work. I just forgot to fully test this in trying to finish up the last feature. |
I know this is very old but has the unselectable vs disabled been resolved? I'm trying to do a work scheduler and Sat/Sun are unselectable but things can certainly span over weekends. |
Possibility to disable specific days of the week. Par exemple, disable choosing Sathurdays and Sundays
The text was updated successfully, but these errors were encountered: