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

6.1.13 • Public • Published

FullCalendar iCalendar Plugin

Display events from a public iCalendar feed

Installation

First, ensure ical.js is installed:

npm install ical.js

Then, install the FullCalendar core package, the iCalendar plugin, and any other plugins (like daygrid):

npm install @fullcalendar/core @fullcalendar/icalendar @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugins and options:

import { Calendar } from '@fullcalendar/core'
import iCalendarPlugin from '@fullcalendar/icalendar'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    iCalendarPlugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  events: {
    url: 'https://mywebsite.com/icalendar-feed.ics',
    format: 'ics' // important!
  }
})

calendar.render()

Package Sidebar

Install

npm i @fullcalendar/icalendar

Weekly Downloads

3,839

Version

6.1.13

License

MIT

Unpacked Size

32.8 kB

Total Files

8

Last publish

Collaborators

  • arshaw