These docs are for an old release.
Info on upgrading to v6
Resource DayGrid View
A DayGrid view like dayGridDay
can be given resource functionality. It is initialized in an ES6 setup like so:
npm install --save @fullcalendar/core @fullcalendar/resource-daygrid
import { Calendar } from '@fullcalendar/core';
import resourceDayGridPlugin from '@fullcalendar/resource-daygrid';
...
let calendar = new Calendar(calendarEl, {
plugins: [ resourceDayGridPlugin ],
initialView: 'resourceDayGridDay',
resources: [
// your list of resources
]
});
...
Or, you can choose to initialize Timeline view with the fullcalendar-scheduler
global bundle:
<link href='fullcalendar-scheduler/main.css' rel='stylesheet' />
<script src='fullcalendar-scheduler/main.js'></script>
<script>
...
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'resourceDayGridDay',
resources: [
// your list of resources
]
});
...
</script>