FullCalendar RRule Plugin
Recurring events with RRule
Installation
First, ensure the RRule lib is installed:
npm install rrule
Then, install the FullCalendar core package, the RRule plugin, and any other plugins (like daygrid):
npm install @fullcalendar/core @fullcalendar/rrule @fullcalendar/daygrid
Usage
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import rrulePlugin from '@fullcalendar/rrule'
import dayGridPlugin from '@fullcalendar/daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [
rrulePlugin,
dayGridPlugin
],
initialView: 'dayGridMonth',
events: [
{
title: 'Meeting',
rrule: {
freq: 'weekly',
byweekday: ['mo', 'fr']
}
}
]
})
calendar.render()