包详细信息

@fullcalendar/timeline

fullcalendar847.6kSEE LICENSE IN LICENSE.md6.1.19

Display events on a horizontal time axis (without resources)

calendar, event, full-sized, fullcalendar

自述文件

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