These docs are for an old release.
Info on upgrading to v6
Docs DayGrid View
A DayGrid view is a view with one or more columns, each representing a day. The pre-configured DayGrid views are dayGridDay and dayGridWeek. They can be initialized in an ES6 setup like so:
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
...
let calendar = new Calendar(calendarEl, {
plugins: [ dayGridPlugin ],
initialView: 'dayGridWeek'
});
...
Or you can choose to initialized DayGrid view as a global bundle:
<link href='fullcalendar/main.css' rel='stylesheet' />
<script src='fullcalendar/main.js'></script>
<script>
...
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridWeek'
});
...
</script>
If you’d like a different interval of time, you can create a custom view with type 'dayGrid'
.
There are numerous other options throughout the docs that affect the display of DayGrid view, such as the date/time display options and locale-related options.