|
2 週間 前 | |
---|---|---|
.. | ||
LICENSE.md | 2 週間 前 | |
README.md | 2 週間 前 | |
index.cjs | 2 週間 前 | |
index.d.ts | 2 週間 前 | |
index.global.js | 2 週間 前 | |
index.global.min.js | 2 週間 前 | |
index.js | 2 週間 前 | |
internal.cjs | 2 週間 前 | |
internal.d.ts | 2 週間 前 | |
internal.js | 2 週間 前 | |
package.json | 2 週間 前 |
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()