Adjust Fullcalendar to initially display the week tab and not by month

Asked

Viewed 1,211 times

1

Personally I have very little knowledge in js, but I’m kind of trying to adjust the fullcalendar to a system I’m creating. I need that instead of it initializing directly for "month", I would like the first screen to be "week".

1 answer

1


When calling fullcalendar, add defaultView: 'agendaWeek'.

Example:

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

To change the view dynamically use changeView.

Example:

$('#calendar').fullCalendar( 'changeView', 'agendaWeek' );
  • 1

    It worked perfectly... Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.