Set the Fullcalendar to initially display the week tab instead of the month

1

Personally I have very little knowledge in js, however I'm kind of trying to sort out the fullcalendar for a system I'm creating. I need instead of it to initialize directly by "month", I would like the first screen to be "week".

    
asked by anonymous 21.08.2014 / 01:24

1 answer

1

When calling the fullcalendar function, add defaultView: 'agendaWeek' .

Example:

$('#calendar').fullCalendar({defaultView: 'agendaWeek'});

To change the view dynamically use changeView .

Example:

$('#calendar').fullCalendar( 'changeView', 'agendaWeek' );
    
21.08.2014 / 02:42