mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
.. | ||
index.cjs | ||
index.d.ts | ||
index.global.js | ||
index.global.min.js | ||
index.js | ||
internal.cjs | ||
internal.d.ts | ||
internal.js | ||
LICENSE.md | ||
package.json | ||
README.md |
FullCalendar Time Grid Plugin
Display events on time slots
Installation
Install the necessary packages:
npm install @fullcalendar/core @fullcalendar/timegrid
Usage
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import timeGridPlugin from '@fullcalendar/timegrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [timeGridPlugin],
initialView: 'timeGridWeek',
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()