pages/fullcalendar-main/packages/daygrid
2024-03-06 14:33:17 +01:00
..
src Publii: update content 2024-03-06 14:33:17 +01:00
.eslintrc.cjs Publii: update content 2024-03-06 14:33:17 +01:00
package.json Publii: update content 2024-03-06 14:33:17 +01:00
README.md Publii: update content 2024-03-06 14:33:17 +01:00

FullCalendar Day Grid Plugin

Display events on a month view or "day grid" view

Installation

Install the necessary packages:

npm install @fullcalendar/core @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import dayGridPlugin from '@fullcalendar/daygrid'

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

calendar.render()