fullcalendar

FullCalendar Vanilla JS package for rendering a calendar

fullcalendar downloads fullcalendar version fullcalendar license

fullcalendarSimilar Packages:

Npm Package Weekly Downloads Trend

3 Years
🌟 Show real-time usage chart on fullcalendar's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of fullcalendar](https://npm-compare.com/img/npm-trend/THREE_YEARS/fullcalendar.png)](https://npm-compare.com/fullcalendar#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 Show GitHub stars trend chart on fullcalendar's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of fullcalendar](https://npm-compare.com/img/github-trend/fullcalendar.png)](https://npm-compare.com/fullcalendar)

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
fullcalendar359,26620,7812.63 MB1,0837 days agoMIT

README for fullcalendar

FullCalendar (Vanilla JS)

FullCalendar Vanilla JS package for rendering a calendar

Installation

npm install fullcalendar temporal-polyfill

Coming from v6?

In v7, plugins like dayGrid and timeGrid are part of this package, imported from subpaths like fullcalendar/daygrid. The separate @fullcalendar/core, @fullcalendar/daygrid, @fullcalendar/interaction (etc.) packages are FullCalendar v6. Don't install them with v7, and don't downgrade to v6: uninstall them and import plugins from fullcalendar/daygrid. See the upgrade guide.

Usage

First, ensure there's a DOM element for your calendar to render into:

<body>
  <div id='calendar'></div>
</body>

Then, instantiate a Calendar object with options and call its render method:

import { Calendar } from 'fullcalendar'
import dayGridPlugin from 'fullcalendar/daygrid'
import classicThemePlugin from 'fullcalendar/themes/classic'

import 'fullcalendar/skeleton.css'
import 'fullcalendar/themes/classic/theme.css'
import 'fullcalendar/themes/classic/palette.css'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    dayGridPlugin,
    classicThemePlugin,
    // any other plugins
  ],
  initialView: 'dayGridMonth',
  weekends: false,
  events: [
    { title: 'Meeting', start: new Date() }
  ]
})

calendar.render()

Plugins

ImportProvides
fullcalendar/daygriddayGridDay/Week/Month/Year views
fullcalendar/timegridtimeGridDay/Week views
fullcalendar/listlistDay/Week/Month/Year views
fullcalendar/multimonthmultiMonthYear view
fullcalendar/interactiondragging, resizing, and date/event selection

Themes are plugins too. fullcalendar/themes/classic, /monarch, /breezy, /forma, and /pulse are available, each paired with a theme.css and a palette stylesheet.

Links