Neah/node_modules/@fullcalendar/core
2025-04-17 12:39:10 +02:00
..
locales database wf 2 2025-04-17 12:39:10 +02:00
node_modules/preact database wf 2 2025-04-17 12:39:10 +02:00
index.cjs database wf 2 2025-04-17 12:39:10 +02:00
index.d.ts database wf 2 2025-04-17 12:39:10 +02:00
index.global.js database wf 2 2025-04-17 12:39:10 +02:00
index.global.min.js database wf 2 2025-04-17 12:39:10 +02:00
index.js database wf 2 2025-04-17 12:39:10 +02:00
internal-common.cjs database wf 2 2025-04-17 12:39:10 +02:00
internal-common.d.ts database wf 2 2025-04-17 12:39:10 +02:00
internal-common.js database wf 2 2025-04-17 12:39:10 +02:00
internal.cjs database wf 2 2025-04-17 12:39:10 +02:00
internal.d.ts database wf 2 2025-04-17 12:39:10 +02:00
internal.js database wf 2 2025-04-17 12:39:10 +02:00
LICENSE.md database wf 2 2025-04-17 12:39:10 +02:00
locales-all.cjs database wf 2 2025-04-17 12:39:10 +02:00
locales-all.d.ts database wf 2 2025-04-17 12:39:10 +02:00
locales-all.global.js database wf 2 2025-04-17 12:39:10 +02:00
locales-all.global.min.js database wf 2 2025-04-17 12:39:10 +02:00
locales-all.js database wf 2 2025-04-17 12:39:10 +02:00
package.json database wf 2 2025-04-17 12:39:10 +02:00
preact.cjs database wf 2 2025-04-17 12:39:10 +02:00
preact.d.ts database wf 2 2025-04-17 12:39:10 +02:00
preact.js database wf 2 2025-04-17 12:39:10 +02:00
README.md database wf 2 2025-04-17 12:39:10 +02:00

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