twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

startingDayWeek not working #40

Closed CMeldgaard closed 8 years ago

CMeldgaard commented 8 years ago

When im using the startingDayWeek to set monday to be the first day of the week (starting-day-week="1") it breaks the code. When swiping the week view it changes month at the same time, and it sets starting day to be wednesday when using the value 1.

Is this an issue or have i just misunderstood something about the option?

twinssbc commented 8 years ago

@GeekMediaDK It's a bug. I have fixed in version 0.2.4. Thanks!

CMeldgaard commented 8 years ago

You'r welcome @twinssbc

Hope you also can you my suggestion for the higlightclass function

twinssbc commented 8 years ago

@GeekMediaDK I have merged your PR and released in version 0.2.5. Thanks!

veljkocasa commented 7 years ago

I just installed version 0.3.3 and startingDayWeek not work... ionic 1.3.2 angular 1.5.8

veljkocasa commented 7 years ago

@twinssbc can you check or hint ?

twinssbc commented 7 years ago

@veljkocasa startingDayWeek option is used like below. Could you have a try?

starting-day-week="1"
veljkocasa commented 7 years ago

tnx @twinssbc on quick response!

I was using it like you say, but when I added starting-day-month="1" it started to work perfectly... So I guess it have to be paired...

solution looks like starting-day-week="1" starting-day-month="1"

tnx again