Active
Project:
FullCalendar
Version:
3.0.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2025 at 10:35 UTC
Updated:
28 Feb 2026 at 21:34 UTC
Jump to comment: Most recent
When I will hover on an event it should show event title and description in tooltip popup.
Is there any way/hook to achieve this?
Comments
Comment #2
nitesh624Comment #3
jennypanighetti commentedI'm looking for this functionality as well. It is in the Fullcalendar JS library, but is it in this module?
Comment #4
nitesh624I don't think this module have this feature. Even if we try to add if try to implement through custom approach. Looks like html tags are getting stripped off in the view.
Comment #5
nitesh624I think hovering feature is a must have feature show show title and description When we hover onto a title. Suppose if title is two long (Suppose 7-10 words ) then it will only show few 3-4 words only on calendar. There is no way to read the complete title.
I tried to implement through custom code by using hook_views_plugins_alter() hook to set my custom class like below and then overriding prepareEvent function to include description as extended property use them in Javascript
and then created a class FullCalendarCustom in my custom mdoule to add description field in
But since parent::prepareEvent() is set as private. So its not allowing me to override.
Comment #6
nitesh624So Now I am able to get this functionality working and below is the code snippet I had to write to get this working
Then include tippyjs library through CDN
and below is the js file content
One major drawback of this approach is first I have to stop the rendering of existing calendar using below line
once.remove('fullCalendarBuild', '.fullcalendar--wrapper', context);Then update the calendar option to attach callback and then create the new object of calendar and re-rendering the calendar like below
Comment #7
nitesh624I am not able to find any way to reuse the existing calendar object and add the callback function before rendering.
Comment #8
mortona2k commentedIs the code in here helpful? https://www.drupal.org/project/fullcalendar/issues/3527506
Comment #9
nitesh624yes that option I already tried. but I could not see anything to check if calendar is already rendered or not
Comment #10
mandclu commentedProviding some form of tooltip display option is definitely a priority for this module. There seem to be quite a few examples online (including on FullCalendar.io) that show using Tippy.js, but it doesn't look like that library's repo has seen any updates in over 3 years and has now been marked as read only, which doesn't give me confidence. Floating UI looks to be actively maintained which makes it look like a better candidate.
As to how this could be configured for Drupal, I would favour allowing a site builder to choose a view mode that would be used to render the content that would appear within the tooltip. That should allow virtually limitless customization options (including the use of custom templates, if desired) but does have the potential drawback that a misconfiguration (for example, choosing view mode that hasn't been set up for a content type) could cause full nodes to be rendered for the tooltip displays, causing the view render to be huge.
Comment #11
nitesh624Yes this could be the good option
Comment #12
erutan commentedThere's built in functionality in fullcalendar that does this already that might be worth looking at vs recreating with a third party solution:
https://fullcalendar.io/docs/event-popover
https://www.drupal.org/project/fullcalendar/issues/3491161 appears to be a dupe of this issue.
Comment #13
mandclu commentedThe event popover seems designed to handle the use case of there being too many events to be shown within the calendar cell. While very useful, that seems different from what is being discussed here. I do agree that #3491161: Allow opening of events in a modal dialog is a duplicate, so thank you for closing that.
One thing from that issue to bring here is the potential approach of just using Drupal's AJAX API. I'm not 100% sure that simply adding the markup will work, but it's definitely worth a try. A big advantage of that approach would be not having to worry about additional rendering or markup in the page.
That said, there are potential advantages to something more customizable that's designed specifically to show an embedded view of the event information within the calendar. But if it works, the AJAX API version could be a good first step with low overhead.
Comment #14
erutan commentedGood catch on the popover, to be fair I just skimmed it.
I've been using (abusing?) the ajax API on a project to load form modes and whatnot into a model and having a ?destination= redirect back to the page the view on for doing larger content edits on the fly. I have it in views rewrites as well as templates. :)
<a href="/storage/{{ id }}/edit/?display=FOO&destination=/BAR" class="use-ajax" data-dialog-type="dialog">✍️</a>This could simply be documented somewhere.
fullcalendar_view iirc has an option where you check a box and then the last field in the view will get loaded in a modal. With rewrites and custom text fields this is a nice workable option.
Comment #15
mandclu commentedYeah the existing JS in this module leverages those properties already for the feature that double-clicking on a time slot or date opens a form to create a new event, and I can verify that it's very convenient. The challenge is that passing it into FullCalendar is not as straightforward. The class is no problem but data attributes aren't as well documented. I think adding it within
extendedPropsmight work.Comment #16
coaston commentedHi guys, is there any update ?
I really need this featute. Came here because migrating from module fullcalendar_view because of perfomance issues and really missing this feature.
I have tried #14 and replaced "title" with ajax link but it works elsewhere but not with fullcalendar display mode it seems.
Any patch?