Adam Shaw 87ca24551a bump il y a 7 mois
..
src 8e8d966f87 fix lint problems il y a 10 mois
.eslintrc.cjs 613ab5765f Adjust pkg names to @fullcalenadar-tests/*, @fullcalenadar-scripts/*, and @fullcalenadar-monorepos/* il y a 2 ans
README.md 4cf4f54d3f fixup more readmes il y a 3 ans
package.json 87ca24551a bump il y a 7 mois

README.md

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