Skip to content
ikelin edited this page May 8, 2012 · 7 revisions

To use resource view:

$('#calendar').fullCalendar({
  ...
  header: {
    left: 'prev,next today',
    center: 'title',
    right: 'resourceDay'
  },
  resources: [
    {
      name: 'Resource 1',
      id: 1
    },
    ...
  ],
  events: [
    {
      title: 'All Day Event 1',
      start: new Date(y, m, d - 1),
      end: new Date(y, m, d + 1),
      resourceId: 1
    },
    ...
  ],
  ...
});

Or to use JSON feed

$('#calendar').fullCalendar({
  ...
  header: {
    left: 'prev,next today',
    center: 'title',
    right: 'resourceDay'
  },
  resources: 'resource-json-feed.json',
  events: 'events-json-feed.json',
  ...
});
Clone this wiki locally