Nothing Special   »   [go: up one dir, main page]

@fullcalendar/timegrid
TypeScript icon, indicating that this package has built-in type declarations

6.1.15 • Public • Published

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

Package Sidebar

Install

npm i @fullcalendar/timegrid

Weekly Downloads

550,812

Version

6.1.15

License

MIT

Unpacked Size

237 kB

Total Files

11

Last publish

Collaborators

  • arshaw