Back to Fullcalendar

resources (as an array)

_docs-v6/resource-data/resources-array.md

latest426 B
Original Source

Tells the calendar to display resources from an array input.

js
var calendar = new Calendar(calendarEl, {
  resources: [
    {
      id: 'a',
      title: 'Room A'
    },
    {
      id: 'b',
      title: 'Room B'
    }
  ]
});

The id property is the most important because it allows associating events with resources. See Resource parsing spec for a full list of fields.