Questions tagged [fullcalendar]

Fullcalendar is a library developed by Adam Shaw that loads events by AJAX (as well as other methods) and presents them in a calendar/agenda display. Please always tag your fullCalendar version additionally - e.g. fullcalendar-5, fullcalendar-4 etc.

Fullcalendar is a calendar plugin developed by Adam Shaw.

It displays timed calendar events in fully customizable views, in traditional familiar calendar formats, as well as agenda-style lists. The built-in view types are:

  • Agenda
  • Day
  • Week
  • Month

Views can be customised to a certain extent, and there is also an API agains which to implement completely new view types for use within the rest of the calendar functionality.

Events can be fed into the calendar via Ajax feeds, or JSON arrays within the page. Multiple simultaneous sources of events are supported, and there is pre-built integration with Google Calendar iCal feeds.

Events can be dragged & dropped onto and around the calendar.

There is a wide range of callback functions and methods, so you can easily handle user actions, e.g select time/range, event resize/drag/drop etc.

The project offers thorough documentation including working demos, and a public GitHub repository where the source code can be found, and bug reports and feature requests can be submitted.

Stack Overflow Snippet Starter

HTML

<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.5.1/main.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@5.5.1/main.css">

<div id='calendar'></div>

Javascript

document.addEventListener('DOMContentLoaded', function() {
  var calendarEl = document.getElementById('calendar');
  var calendar = new FullCalendar.Calendar(calendarEl, {
    initialView: 'dayGridMonth'
  });
  calendar.render();
});
9743 questions
89
votes
5 answers

Adding a Resource View/Gannt chart to jQuery Fullcalendar

I am using jQuery Fullcalendar and if you're not using it I suggest you do too because it is absolutely fantastic at what it does! However to be really useful to me and my project (and many others) I honestly believe it needs a resource/gannt…
Tim
  • 3,091
  • 9
  • 48
  • 64
78
votes
7 answers

Best Way to Extend a jQuery Plugin

I'm a fairly new jQuery user looking to extend an existing jQuery plugin that does about 75% of what I need. I've tried to do my homework on this. I've checked out the following questions on stackoverflow: Extending a jQuery Plugin Extend a…
justkt
  • 14,610
  • 8
  • 42
  • 62
67
votes
9 answers

Display more Text in fullcalendar

I am looking for a solution to display more information in event. For example in the DayView you see a event from 06:00 to 10:00. I want to display a additional description in this event (not only the time and the title).
chichi
  • 683
  • 1
  • 6
  • 5
60
votes
2 answers

FullCalendar header buttons missing

I am using fullCalendar as below and have defined header section, everything works ok except header where it's only showing title but next, prev, month view etc buttons are missing if I remove word 'title' it removes title so it seems to be doing…
Moji
  • 5,720
  • 2
  • 38
  • 39
53
votes
10 answers

How to set full calendar to a specific start date when it's initialized for the 1st time?

I would like to set the initial month to an arbitrary month when I call the function to display the calendar. Say for example the user selects a date last june (June 2011) somewhere else and I want fullcalendar to show up with a month display of…
Stefan
  • 535
  • 1
  • 4
  • 8
46
votes
14 answers

Hide start time in FullCalendar

On FullCalendar, in the month view, is there a way to hide an event's start time?
Theo
  • 461
  • 1
  • 4
  • 4
45
votes
1 answer

"Uncaught SyntaxError: Unexpected token ." with FullCalendar

I am working with the jQuery FullCalendar plugin. I import like this: