npm.io
6.1.22 • Published 1 month ago

@fullcalendar/timeline

Licence
SEE LICENSE IN LICENSE.md
Version
6.1.22
Deps
2
Size
231 kB
Vulns
0
Weekly
0
Stars
801

FullCalendar Timeline Plugin

This package is for FullCalendar v6. The current version is v7, where @fullcalendar/timeline is no longer a separate package. With v7, don't install @fullcalendar/timeline or @fullcalendar/core, and don't downgrade to v6: import the plugin from your framework's v7 package instead, e.g. import timelinePlugin from '@fullcalendar/react-scheduler/timeline'. See the upgrade guide.

Display events on a horizontal time axis (without resources)

Installation

Install the necessary packages:

npm install @fullcalendar/core @fullcalendar/timeline

Usage

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()

Keywords