Hello,
I'm trying to get showNonBusiness to hide the non-business hour on the control but I can't really get it to work. I've got the latest demo JS file but it keeps showing non-business hours in my control. I even tried to use onIncludeTimeCell to hide them but I still get all the non-business hours. Here is my code sample:
var dp = new DayPilot.Calendar("dp");
// view
dp.startDate = calDate.yyyymmdd();
dp.days = 7;
dp.moveBy = 'Full';
dp.viewType = "Week";
// Specific time
dp.businessBeginsHour = 6;
dp.businessEndsHour = 22;
dp.showNonBusiness = false;
// Version 8.3.3548
dp.businessWeekends = true;
dp.onIncludeTimeCell = function (args) {
args.cell.visible = !(args.cell.start.getHours() > 22 || args.cell.start.getHours() < 6);
};
dp.scale = "Hour";
But what I get when I render it is the screenshot below, it sows all the non-business hours.