@ezitlab/timeline6
v6.1.15
Published
Display events and resources on a horizontal time axis
Downloads
59
Maintainers
Readme
FullCalendar Resource Timeline Plugin
Display events and resources on a horizontal time axis
Installation
Install the necessary packages. The resource plugin is a required peer dependency:
npm install @fullcalendar/core @fullcalendar/resource @ezitlab/timeline6
Usage
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import resourceTimelinePlugin from '@ezitlab/timeline6'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [resourceTimelinePlugin],
initialView: 'resourceTimelineWeek',
resources: [
{ title: 'Resource A' },
{ title: 'Resource B' }
]
})
calendar.render()