These docs are for an old release.
Info on upgrading to v4
navLinkWeekClick 3.0
Determines what happens upon a week-number nav-link click.
view name (string), function
By default, the user is taken to the first week-view that appears in the header.
A string argument can be provided that navigates the user to a specific view.
Also, a function argument can be provided that executes arbitrary code:
$('#calendar').fullCalendar({
navLinks: true,
navLinkWeekClick: function(weekStart, jsEvent) {
console.log('week start', weekStart.format()); // weekStart is a moment
console.log('coords', jsEvent.pageX, jsEvent.pageY);
}
});
When a custom function is specified, the user will not automatically navigate to any view.