Search code examples
javascriptfullcalendarfullcalendar-schedulerfullcalendar-6

Apply minimum time on first day of my resource timeline only


Is there a way to apply something similar to slotMinTime (which determines the first time slot displayed for each day), but only at the beginning of my timeline?

For example, if I have a 3-day resource timeline view and set the start time to 07:00, I want my resource timeline to start from 07:00 on the first day and extend to the third day, including all other times.

If I use slotMinTime, my display will start at 07:00 on each of those 3 days and this will not work for me because I want only the first day to start at 07:00.


Solution

  • I made it work by changing the duration from days to hours in the resourceTimeline, for example :

    resourceTimelineTwoDays: {
        type: 'resourceTimeline',
        duration: { hours: 48 },
    }