vue-cal icon indicating copy to clipboard operation
vue-cal copied to clipboard

Add starting day of the week

Open KayVeeCodes opened this issue 4 years ago • 4 comments

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!

KayVeeCodes avatar Sep 15 '20 10:09 KayVeeCodes

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.

antoniandre avatar Sep 17 '20 09:09 antoniandre

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!

KayVeeCodes avatar Sep 17 '20 09:09 KayVeeCodes

I need the same feature,thanks for your work @antoniandre , very cool

wyymichael avatar Sep 22 '20 02:09 wyymichael

@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!

antoniandre avatar Sep 22 '20 02:09 antoniandre