Asked by Alexey Grigorev8 months ago.
I am going to make the separator on timesheet scheduler.
How can I do it?
In separators array, only requires the date/time.
But in timesheet scheduler, header axis is only time.
How can I operate it?
Answer posted by Dan Letecky [DayPilot]8 months ago.
In the timesheet mode, you need to define separators with the date of the first row (i.e., add the specified hour to the first day):
const timesheet = new DayPilot.Scheduler("scheduler", {
viewType: "Days",
startDate: DayPilot.Date.today().firstDayOfMonth(),
days: DayPilot.Date.today().daysInMonth(),
separators: [
{color: "red", location: DayPilot.Date.today().firstDayOfMonth().addHours(2)}
],
// ...
});
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.