Back to Fullcalendar

businessHours-per-resource

_docs-v3/business-hours/businessHours-per-resource.md

latest556 B
Original Source

The main businessHours settings can be applied more granularly to individual resources via the businessHours property on the Resource Object<!--more--> like so:

js
$('#calendar').fullCalendar({
  defaultView: 'timelineWeek',
  resources: [
    {
      id: 'a',
      title: 'Resource A',
      businessHours: {
        start: '10:00',
        end: '18:00'
      }
    },
    {
      id: 'b',
      title: 'Resource B',
      businessHours: {
        start: '11:00',
        end: '17:00'
      }
    }
  ]
});