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
fullcalendar020,6182.17 MB1,129a month agoMIT

README for fullcalendar

FullCalendar (Vanilla JS)

FullCalendar Vanilla JS package for rendering a calendar

Installation

npm install fullcalendar temporal-polyfill

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