Back to Fullcalendar

FullCalendar Google Calendar Plugin

packages/google-calendar/README.md

6.1.20929 B
Original Source

FullCalendar Google Calendar Plugin

Display events from a public Google Calendar feed

Installation

Install the FullCalendar core package, the Google Calendar plugin, and any other plugins (like daygrid):

sh
npm install @fullcalendar/core @fullcalendar/google-calendar @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

js
import { Calendar } from '@fullcalendar/core'
import googleCalendarPlugin from '@fullcalendar/google-calendar'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    googleCalendarPlugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  events: {
    googleCalendarId: '[email protected]'
  }
})

calendar.render()