Easily render a full-sized drag & drop calendar with a combination of standard plugins
This fullcalendar
package bundles these plugins:
- @fullcalendar/core
- @fullcalendar/interaction
- @fullcalendar/daygrid
- @fullcalendar/timegrid
- @fullcalendar/list
- @fullcalendar/multimonth
Load the index.global.min.js
file and use the FullCalendar
global namespace:
<!DOCTYPE html>
<html>
<head>
<script src='https://cdn.jsdelivr.net/npm/fullcalendar/index.global.min.js'></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const calendarEl = document.getElementById('calendar')
const calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth'
})
calendar.render()
})
</script>
</head>
<body>
<div id='calendar'></div>
</body>
</html>
npm install fullcalendar
import { Calendar } from 'fullcalendar'
document.addEventListener('DOMContentLoaded', function() {
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
initialView: 'dayGridMonth'
})
calendar.render()
})