What is @fullcalendar/daygrid?
@fullcalendar/daygrid is a plugin for FullCalendar that provides a month view and a basic week view. It allows users to display events in a grid format, making it easy to visualize events over a period of time.
What are @fullcalendar/daygrid's main functionalities?
Month View
This feature allows you to display a full month view of the calendar. The code initializes the FullCalendar with the dayGrid plugin and sets the initial view to 'dayGridMonth'.
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
plugins: [dayGridPlugin],
initialView: 'dayGridMonth'
});
calendar.render();
Week View
This feature allows you to display a week view of the calendar. The code initializes the FullCalendar with the dayGrid plugin and sets the initial view to 'dayGridWeek'.
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
plugins: [dayGridPlugin],
initialView: 'dayGridWeek'
});
calendar.render();
Event Display
This feature allows you to display events on the calendar. The code initializes the FullCalendar with the dayGrid plugin, sets the initial view to 'dayGridMonth', and adds events to be displayed.
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
const calendarEl = document.getElementById('calendar');
const calendar = new Calendar(calendarEl, {
plugins: [dayGridPlugin],
initialView: 'dayGridMonth',
events: [
{ title: 'Event 1', start: '2023-10-01' },
{ title: 'Event 2', start: '2023-10-05', end: '2023-10-07' }
]
});
calendar.render();
Other packages similar to @fullcalendar/daygrid
react-big-calendar
react-big-calendar is a calendar component for React that provides a similar grid-based view for displaying events. It supports month, week, and day views, and is highly customizable. Compared to @fullcalendar/daygrid, react-big-calendar is specifically designed for React applications and offers a more React-centric API.
tui-calendar
tui-calendar is a JavaScript calendar library that provides various views including month, week, and day views. It is highly customizable and supports features like drag-and-drop event creation and resizing. Compared to @fullcalendar/daygrid, tui-calendar offers a broader range of features and is not tied to any specific framework.
vue-fullcalendar
vue-fullcalendar is a Vue.js component wrapper for FullCalendar. It provides similar functionalities to @fullcalendar/daygrid but is specifically designed for Vue.js applications. It allows for easy integration of FullCalendar into Vue projects, offering a more seamless experience for Vue developers.
4.0.1 (2019-03-18)
Read about all the changes in v4:
https://fullcalendar.io/docs/upgrading-from-v3
Obscure breaking changes from v3->v4 not mentioned elsewhere:
touchMouseIgnoreWait
moved to (packageRoot).config.touchMouseIgnoreWait
dataAttrPrefix
moved to (packageRoot).config.dataAttrPrefix
Advancements since latest prerelease:
- New styling for buttons and icons in header. New styling for events.
- Bugfixes: #4539, #4503, #4534, #4505, #4477, #4467, #4454, #4458, #4483,
#4517, #4506, #4435, #4498, #4497, #4446, #4432, #4530
NOTE: version "4.0.0" was skipped because of an NPM publishing error