|
před 2 týdny | |
---|---|---|
.. | ||
LICENSE.md | před 2 týdny | |
README.md | před 2 týdny | |
index.cjs | před 2 týdny | |
index.d.ts | před 2 týdny | |
index.global.js | před 2 týdny | |
index.global.min.js | před 2 týdny | |
index.js | před 2 týdny | |
internal.cjs | před 2 týdny | |
internal.d.ts | před 2 týdny | |
internal.js | před 2 týdny | |
package.json | před 2 týdny |
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()