Dear Sir/Madam,
I would like to change the weekend days from Saturday and Sunday to Friday and Saturday. In addition I want those days to be hidden along with the non-working hours.
So far I have tried using these settings:
dp.showNonBusiness = false;
dp.businessWeekends = false;
Together with this event:
dp.onBeforeCellRender = function (args) {
//MAKE every FRIDAY AND SATURDAY working days and every SUNDAY non working
if (args.cell.start.getDayOfWeek() == 5 || args.cell.start.getDayOfWeek() == 6) {
args.cell.business = false;
}
else {
args.cell.business = true;
}
};
However, setting the day to non business only applies a custom css class and grays the cells out, it does not consider this day a weekend.
Any help would be appreciated!