I need some assistance with displaying a drop-down list on full calendar events when hovering over the events. Can someone provide guidance?
Here is a glimpse of what I currently have:
https://i.sstatic.net/fZXMH.png
I've attempted setting the z-index, but I can't seem to get the drop-down list to appear on top.
I'm not interested in using a tooltip; I specifically want a drop-down list to show up when the event is hovered over.
This is the code snippet where I tried adjusting the Full Calendar options:
eventRender: function (eventObj, $element) {
//$element.popover({
// title: eventObj.title,
// content: function () {
// return $scope.getToolTipData("","");
// },
// trigger: 'hover',
// placement: 'bottom',
// container: 'body'
//});
$element.addClass('dropdown');
$element.append($scope.getToolTipData("","",eventObj.id));
},
eventMouseover: function (calEvent, jsEvent) {
console.log(calEvent);
$(this).css('z-index', 10000);
},
eventMouseout: function (calEvent, jsEvent) {
}
The function getToolTipData() generates the drop-down list as a ul element, shown below:
<ul class="dropdown-menu tooltipevent" id="eventDropdown">
<li>
<a href="#">
<div class="media">
<div class="media-left">
<span class="icon icon-github icon-2x icon-fw"></span>
</div>
<div class="media-body">
GitHub<br>
<small>Clone with an SSH key from your GitHub settings.</small>
</div>
</div>
</a>
</li>
... additional list items go here ...
</ul>
Additionally, here is the CSS style modification for the Full Calendar hover effect:
.fc-event:hover .tooltipevent {
z-index: 10001 !important;
display:block !important;
}
As of now, the drop-down list only appears on top of the event and within the cell of the day. I want it to be positioned above that specific cell.
Thank you in advance.