Has anyone had any joy in adding tooltips to the full calendar V4 when locker service is enabled on Salesforce? You cannot use a 3rd party library as a proxy is returned instead of the element, so the eventRender documented method will not work.
eventRender: function(info) {
var tooltip = new Tooltip(info.el, {
title: info.event.extendedProps.description,
placement: 'top',
trigger: 'hover',
container: 'body'
});
}
I have tried using the standard Salesforce helptext classes, but still with no joy. I've tried setting the popover classes on the eventMouseEnter and eventRender but I constantly encounter the same message 'Cannot read property 'getElement' of undefined'
eventMouseEnter: function(info){
var tooltip = '<div aura:id="eleID" id="eventTooltip" class="slds-popover slds-popover_tooltip slds-nubbin_bottom-left" role="tooltip" style="position:absolute;top:-4px;left:35px">' +
'<div class="slds-popover__body">' + info.event.title + '</div>' +
'</div>';
console.log('Mouse entered = ' + info.event.title);
**//Failing on the below line, with 'Cannot read property 'getElement' of
undefined**
var myElement = component.find('eleID').getElement();
console.log('My Element', myElement);
info.el.setAttribute("aria-describedby","eventTooltip");
info.el.parentNode.innerHTML += tooltipHtml;
}
Does anyone have any suggestions? Many thanks