Display events on a horizontal time axis (without resources)
Install the necessary packages:
npm install @fullcalendar/core @fullcalendar/timeline
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import timelinePlugin from '@fullcalendar/timeline'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [timelinePlugin],
initialView: 'timelineWeek',
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()