I have read through the documentation and but I can not seem to find if this is possible.
I have initialised a timelineview with the following options
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'resourceTimelineWeek',
slotMinTime: "08:00:00",
slotMaxTime: "17:30:00",
editable: true,
snapDuration: "00:30:00",
eventDurationEditable: false,
showNonCurrentDates: false,
businessHours: {
daysOfWeek: [1, 2, 3, 4, 5],
startTime: "08:00:00",
endTime: "17:30:00"
}});
What I am trying to do is add an event, with a start date of 2022-09-06 17:00 and a duration of 75 minutes and have the event set the correct end time taking into consideration the business hours, so the end date would be 2022-09-07 08:15.
Events only seem to support end date (or the default duration if no end date is specified), but in either case, when adding the event, the end time is outside the business hours and not extended into the next business day.
This is more problematic when dragging events.
What I have tried to do so far, is calculate the new end date based on the business hours when an eventDrop is called but I have been unable to achieve the desired result.
Any help would be much appreciated.