If I define a Calendar with this dateIsWorkday function:
dateIsWorkday: function (date) {
var today = new Date();
if (today.getFullYear() === date.getFullYear() && today.getMonth() === date.getMonth() && today.getDate() === date.getDate() && date.getHours() > 14 && date.getHours() < 17) {
return false;
} else {
return true;
}
}
I expect to see with a different style the hours between 14 and 17 of just today.
This works ok in day view.
If I switch to week view, I see ok for today the proper style in today cell. The problem is if I move to the next week. The same cells remains with the same style than before (that's wrong), but if I move the mouse over them, it becomes fixed.
I have tried also the Calendar.weekView.refreshStyle but it doesn't work neither (in dayView works ok).
So two issues here:
* The style is not refreshed when switching week
* The style is not refreshed if I even force a manually weekView.refreshStyle()
Thanks.
dateIsWorkday: function (date) {
var today = new Date();
if (today.getFullYear() === date.getFullYear() && today.getMonth() === date.getMonth() && today.getDate() === date.getDate() && date.getHours() > 14 && date.getHours() < 17) {
return false;
} else {
return true;
}
}
I expect to see with a different style the hours between 14 and 17 of just today.
This works ok in day view.
If I switch to week view, I see ok for today the proper style in today cell. The problem is if I move to the next week. The same cells remains with the same style than before (that's wrong), but if I move the mouse over them, it becomes fixed.
I have tried also the Calendar.weekView.refreshStyle but it doesn't work neither (in dayView works ok).
So two issues here:
* The style is not refreshed when switching week
* The style is not refreshed if I even force a manually weekView.refreshStyle()
Thanks.
Comment