These docs are for an old release. Info on upgrading to v4
edit doc

Get/Set Options Dynamically

You can get/set calendar options after a calendar has already been initialized.

Getting

You can query for the current value of a calendar option:

var locale = $('#calendar').fullCalendar('option', 'locale');

This will only return options that are global to the calendar. This method will not return View-Specific Options.

Setting

Since version 2.9.0, it is possible to dynamically set options after initalization. These option modifications will be applied to all views. It is not currently possible to set View-Specific Options in this manner.

You can dynamically set a single option:

$('#calendar').fullCalendar('option', 'locale', 'fr');

Or if you would like to set multiple options at once, limiting the calendar to at most one repaint, pass in an option hash:

$('#calendar').fullCalendar('option', {
  locale: 'fr',
  isRTL: true
});

Exceptions

Some options need to be manipulated through methods:

Event Sources should be dynamically manipulated through methods like addEventSource and removeEventSource. Thusly, dynamic setting of the following options is not applicable:

  • events
  • eventSources

Some options affect processing of event data. Dynamically setting them will not change current event data, but will take effect for future event fetches:

  • defaultAllDayEventDuration
  • defaultTimedEventDuration
  • allDayDefault
  • forceEventDuration
  • eventDataTransform
  • startParam
  • endParam
  • timezoneParam

Dynamic setting of some options is simply not yet implemented:

  • handleWindowResize
  • views