Display events on day/resource columns
Install the necessary packages. The resource plugin is a required peer dependency:
npm install @fullcalendar/core @fullcalendar/resource @fullcalendar/resource-daygrid
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import resourceDayGridPlugin from '@fullcalendar/resource-daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [resourceDayGridPlugin],
initialView: 'resourceDayGridDay',
resources: [
{ title: 'Resource A' },
{ title: 'Resource B' }
]
})
calendar.render()
Version | Tag | Published |
---|---|---|
6.1.4 | latest | 1mo ago |
5.11.4 | legacy | 2mos ago |
6.0.0-beta.4 | beta | 3mos ago |