zhaojinyu e984acc6d0 first commit 11 月之前
..
LICENSE.md e984acc6d0 first commit 11 月之前
README.md e984acc6d0 first commit 11 月之前
index.cjs e984acc6d0 first commit 11 月之前
index.d.ts e984acc6d0 first commit 11 月之前
index.global.js e984acc6d0 first commit 11 月之前
index.global.min.js e984acc6d0 first commit 11 月之前
index.js e984acc6d0 first commit 11 月之前
internal.cjs e984acc6d0 first commit 11 月之前
internal.d.ts e984acc6d0 first commit 11 月之前
internal.js e984acc6d0 first commit 11 月之前
package.json e984acc6d0 first commit 11 月之前

README.md

FullCalendar Time Grid Plugin

Display events on time slots

Installation

Install the necessary packages:

npm install @fullcalendar/core @fullcalendar/timegrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import timeGridPlugin from '@fullcalendar/timegrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [timeGridPlugin],
  initialView: 'timeGridWeek',
  events: [
    { title: 'Meeting', start: new Date() }
  ]
})

calendar.render()