@fullcalendar/interaction

esm cjs
Calendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting
Keywords
calendareventfull-sizedfullcalendardrag-n-dropresizingselecting
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 6.1.17
- 6.1.15
- 6.1.14
- 6.1.13
- 6.1.12
- 6.1.11
- 6.1.10
- 6.1.9
- 6.1.8
- 6.1.7
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.1
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.11.5
- 5.11.4
- 5.11.3
- 5.11.2
- 5.11.0
- 5.10.1
- 5.10.0
- 5.9.0
- 5.8.0
- 5.7.2
- 5.7.0
- 5.6.0
- 5.5.0
- 5.4.0
- 5.3.1
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- 4.4.2
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.2
- 4.0.1
- 7.0.0-rc.0
- 7.0.0-beta.4
- 7.0.0-beta.3
- 7.0.0-beta.1
- 7.0.0-beta.0
- 6.0.0-beta.4
- 6.0.0-beta.3
- 6.0.0-beta.2
- 6.0.0-beta.1
- 5.0.0-rc
- 5.0.0-beta.4
- 5.0.0-beta.3
- 5.0.0-beta.2
- 5.0.0-beta.1
- 5.0.0-beta
- 4.0.0-beta.4
- 4.0.0-beta.3
- 4.0.0-beta.2
- 4.0.0-beta.1
<script src=" https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@6.1.17/index.global.min.js "></script>
FullCalendar Interaction Plugin
Calendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting
Installation
Install the FullCalendar core package, the interaction plugin, and any other plugins (like daygrid):
npm install @fullcalendar/core @fullcalendar/interaction @fullcalendar/daygrid
Usage
Instantiate a Calendar with the necessary plugins and options:
import { Calendar } from '@fullcalendar/core'
import interactionPlugin from '@fullcalendar/interaction'
import dayGridPlugin from '@fullcalendar/daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [
interactionPlugin,
dayGridPlugin
],
initialView: 'dayGridMonth',
editable: true, // important for activating event interactions!
selectable: true, // important for activating date selectability!
events: [
{ title: 'Meeting', start: new Date() }
]
})
calendar.render()