npm.io
6.1.21 • Published 3 months ago

@fullcalendar/timeline

Licence
SEE LICENSE IN LICENSE.md
Version
6.1.21
Deps
2
Size
230 kB
Vulns
0
Weekly
0
Stars
798

FullCalendar Timeline Plugin

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