Reputation: 866
I'd like to pass a parameter to FullCalendar when it's loading so that the first view the user sees is the month that I've specified. So far I've found this:
$('#calendar').fullCalendar({
// options
});
var CurrentDate = new Date();
var CurrentYear = CurrentDate.getFullYear();
$('#calendar').fullCalendar( 'gotoDate', CurrentYear, 7);
The code above works but the plugin is written quite well so I'm guessing there's a way to pass this information to the plugin as options initially. Could anyone point me to an example or documentation of how this is done?
Upvotes: 0
Views: 1273