FullCalendar
These docs are a work in progress. Learn about v7 updates
Latest:  v7.0.0-beta.7
Resource Data
    • resources (as an array)
    • resources (as a JSON feed)
    • resources (as a function)
    • Resource Parsing
    • Resource Object
    • Associating Events with Resources
    • refetchResourcesOnNavigate
    • initialResources
  • Methods

    • refetchResources
    • getTopLevelResources
    • getResources
    • getResourceById
    • addResource
    • Resource::getParent
    • Resource::getChildren
    • Resource::getEvents
    • Resource::setProp
    • Resource::setExtendedProp
    • Resource::remove
    • Resource::toPlainObject
  • Callbacks

    • resourceAdd
    • resourceChange
    • resourceRemove
    • resourcesSet
  • See Also

    • Event::getResources
    • Event::setResources
    • businessHours-per-resource
    • loading
edit doc

resources (as an array)

Tells the calendar to display resources from an array input.

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.