@fullcalendar/rrule
TypeScript icon, indicating that this package has built-in type declarations

6.1.11 • Public • Published

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()

Package Sidebar

Install

npm i @fullcalendar/rrule

Weekly Downloads

18,064

Version

6.1.11

License

MIT

Unpacked Size

26.6 kB

Total Files

8

Last publish

Collaborators

  • arshaw