@cinacalendar/timegrid
v6.1.20
Published
Display events on time slots
Maintainers
Readme
CinaCalendar Time Grid Plugin
Display events on time slots
Installation
Install the necessary packages:
npm install @cinacalendar/core @cinacalendar/timegridUsage
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@cinacalendar/core'
import timeGridPlugin from '@cinacalendar/timegrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [timeGridPlugin],
initialView: 'timeGridWeek',
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()