32 lines
626 B
Markdown
32 lines
626 B
Markdown
|
|
# FullCalendar Multi-Month Plugin
|
|
|
|
Display multiple months, in a grid or vertical stack
|
|
|
|
## Installation
|
|
|
|
Install the necessary packages:
|
|
|
|
```sh
|
|
npm install @fullcalendar/core @fullcalendar/multimonth
|
|
```
|
|
|
|
## Usage
|
|
|
|
Instantiate a Calendar with the necessary plugin:
|
|
|
|
```js
|
|
import { Calendar } from '@fullcalendar/core'
|
|
import multiMonthPlugin from '@fullcalendar/multimonth'
|
|
|
|
const calendarEl = document.getElementById('calendar')
|
|
const calendar = new Calendar(calendarEl, {
|
|
plugins: [multiMonthPlugin],
|
|
initialView: 'multiMonthYear',
|
|
events: [
|
|
{ title: 'Meeting', start: new Date() }
|
|
]
|
|
})
|
|
|
|
calendar.render()
|
|
```
|