Premium full-sized drag & drop calendar & scheduler in JavaScript
The FullCalendar Premium Bundle is easier to install than individual plugins, though filesize will be larger. It works well with a CDN.
Install the FullCalendar core package and any plugins you plan to use:
npm install \
@fullcalendar/core \
@fullcalendar/interaction \
@fullcalendar/resource \
@fullcalendar/resource-timeline
Instantiate a Calendar with plugins and options:
import { Calendar } from '@fullcalendar/core'
import interactionPlugin from '@fullcalendar/interaction'
import resourceTimelinePlugin from '@fullcalendar/resource-timeline'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [
interactionPlugin,
resourceTimelinePlugin
],
initialView: 'resourceTimelineWeek',
editable: true,
events: [
{ id: '1', resourceId: 'a', title: 'Meeting', start: new Date() }
],
resources: [
{ id: 'a', title: 'Resource A' },
{ id: 'b', title: 'Resource B' }
]
})
calendar.render()