I am using jQuery Full calendar.
But I am not getting how to set the week view as Default view in full calendar.
Try:
$('#calendar').fullCalendar({
defaultView: 'basicWeek'
aspectRatio: 1.5
});
Ref: FullCalendar Available Views
Edited:
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
defaultView: 'basicWeek'
....
Use the defaultView
option:
$('#myCalendar'-.fullcalendar({
defaultView: 'basicWeek'
})
To get a calendar with a view of the week and hours:
$('#calendar').fullCalendar({
defaultView: 'agendaWeek'
});
in v5 is initialView: 'timeGridWeek'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With