search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Timesheet separator

Asked by Alexey Grigorev
1 day 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]
1 day 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)}
  ],
  // ...
});
New Reply
This reply is
Attachments:
or drop files here
Your name (optional):