vue-cal
vue-cal copied to clipboard
Add starting day of the week
Hi, I really love this vue calendar basically for the simplicity when I want to implement something!!
Issue
Recently I came across an issue that I need to change the starting day of the week. i.e I want the day of the week to start from Wednesday and end in next Tuesday!
I saw that you only have the :startWeekOnSunday
property available and then the ":hide-weekdays"
.
Unfortunately I don't want to hide some of the days, I want to see them all but in different order
Suggestion
How about we create a new property called :startingDayOfWeek="3"
so the week will start from Wednesday instead of Sunday or Monday
Thanks in advance!
Hi @Ponokefalos, thanks for your feedback and suggestion. Adding this option is not that straightforward (I wish!) but I add it to my to do list.
Thanks for your response @antoniandre! I inspected your code and I figured that you constantly add days in order to find the dayList you want to display. For me thats the main problem. I could spend some time if you like and then submit a pull request!
I need the same feature,thanks for your work @antoniandre , very cool
@Ponokefalos, If you want to give it a shot that's awesome @Ponokefalos! Thanks for suggesting. I let you start it, I will take over to finish or polish if needed. ;)
Quick tips:
Please comply to the project's naming convention and installed linter (e.g. no semi-colon).
I suggest you can start your tests in isolated-test-view.vue
(the URL is /test
) it's easier to develop.
Then when you feel like you're done, test it on all the demo examples to make sure it behaves as expected.
Don't hesitate to ask me questions here or via email if it helps (my email is in the package.json file).
Have fun!
Thanks for your feedback @wyymichael!