arshaw 3a8510ac35 RELEASING: Releasing 31 package(s) 1 год назад
..
src 32883cd560 safer way of importing rrule in next.js 2 лет назад
.eslintrc.cjs 613ab5765f Adjust pkg names to @fullcalenadar-tests/*, @fullcalenadar-scripts/*, and @fullcalenadar-monorepos/* 2 лет назад
README.md 4cf4f54d3f fixup more readmes 3 лет назад
package.json 3a8510ac35 RELEASING: Releasing 31 package(s) 1 год назад

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