-
-
Notifications
You must be signed in to change notification settings - Fork 172
Use Enums for WeekStart #1199
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
Use Enums for WeekStart #1199
Conversation
|
I'd say better to use config to set start of the week Monday or Sunday |
5c31ac3 to
d434a6f
Compare
Not sure what you mean. Can you please elaborate @Faq ? |
|
I mean this should be configurable option, where let's say by default week starts at Monday, but with configuration can set that it starts at Sunday. |
|
It is a personal preference, introducing this change is a breaking change. Also, changing starting day is easy with passing |
|
@Jasenkoo not sure why this was closed. This commit changed the behavior of the calendar to Mon-Sun since weekStart is default This PR was to reset and introduce a friendly enum type and go back to the original default start. I verified it locally by running back through the commit history. Before a32ba3f After a32ba3f Plus you can use the enum values to more reliably manipulate the week start and it's non-breaking to existing users. With commit a32ba3f every instance of vue-datepicker I have to now set See Schedule-x for example. They use an enum for setting the first day of the week. |
|
I am willing to accept the PR, but with applied changes from review |
Resolved |




Describe your changes
Added a weekday enum to pass into the Vue date picker prop instead of a non-descript int/string (0-6).
Issue ticket number and link
Checklist before requesting a review