|
|
3 달 전 | |
|---|---|---|
| .. | ||
| LICENSE.md | 3 달 전 | |
| README.md | 3 달 전 | |
| index.cjs | 3 달 전 | |
| index.d.ts | 3 달 전 | |
| index.global.js | 3 달 전 | |
| index.global.min.js | 3 달 전 | |
| index.js | 3 달 전 | |
| internal.cjs | 3 달 전 | |
| internal.d.ts | 3 달 전 | |
| internal.js | 3 달 전 | |
| package.json | 3 달 전 | |
Display events on time slots
Install the necessary packages:
npm install @fullcalendar/core @fullcalendar/timegrid
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()