@fullcalendar/core

FullCalendar core package for rendering a calendar

@fullcalendar/core downloads @fullcalendar/core version @fullcalendar/core license

@fullcalendar/coreSimilar Packages:

Npm Package Weekly Downloads Trend

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

Cumulative GitHub Star Trend

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

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
@fullcalendar/core1,348,53320,3541.88 MB1,0892 months agoMIT

README for @fullcalendar/core

FullCalendar Core

FullCalendar core package for rendering a calendar

Installation

This package is never used alone. Use it with least one plugin (like daygrid):

npm install @fullcalendar/core @fullcalendar/daygrid

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/core'
import dayGridPlugin from '@fullcalendar/daygrid'

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

calendar.render()