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

6.1.11 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @fullcalendar/core

    Weekly Downloads

    605,854

    Version

    6.1.11

    License

    MIT

    Unpacked Size

    1.86 MB

    Total Files

    417

    Last publish

    Collaborators

    • arshaw