Hello everyone,
I am currently developing a project using the Scheduler component. I have encountered a problem when trying to configure the time range in my scheduler.
In my use case, I need to display a scheduler that covers several days, but each day only needs to show a particular time window. For instance, I want to show a full week schedule, but only from 8:00 AM to 6:00 PM each day. I have been struggling to implement this feature.
Currently, the scheduler I have set up displays all 24 hours for each day. I am using the startDate
and days
properties to set the range of dates, but I'm unable to figure out how to limit the hours that are displayed each day.
Here's a snippet of my current configuration:
const dp = new DayPilot.Scheduler("dp", {
startDate: "2023-06-01",
days: 7,
scale: "CellDuration",
cellDuration: 60
});
dp.init();
In my understanding, the cellDuration
property adjusts the duration of each time slot, but it doesn't seem to restrict the hours that are displayed each day.
Could anyone guide me on how to limit the hours displayed each day in the scheduler? Any suggestions or guidance would be highly appreciated.
Thank you in advance.