Hi Juan,
Greetings from Syncfusion Support..!
We have validated your shared query “Now requirements have change and I need to be able to show the same tooltip template when hovering above some element text and/or icon in a scheduler event” at our end. And we suspect that your requirement is to apply your own customized template for the Tooltip. And for that, kindly refer the below UG link.
Kindly try the above ug link and if we misunderstand your requirement, kindly let us know more details about the use case scenario/video demo/image of your requirements for the better serve.
Regards,Hareesh
function onBound() {
document.querySelector('.e-appointment').addEventListener('mouseover', function (e) {
if (e.target.classList.contains('fa')) {
var target = ej.base.closest(e.target, '.fa');
if (target) {
var hoverTar = e.target.parentElement.parentElement.parentElement;
var schObj = document.querySelector(".e-schedule").ej2_instances[0];
var content = schObj.getEventDetails(hoverTar).Subject;
document.querySelector(".e-schedule-event-tooltip").style.display = "none";
var tooltipObj = document.querySelector('#Tooltip').ej2_instances[0];
tooltipObj.open(target);
tooltipObj.content = content;
}
} else {
if (!ej.base.isNullOrUndefined(document.querySelector(".e-schedule-event-tooltip"))) {
document.querySelector(".e-schedule-event-tooltip").style.display = "";
}
document.querySelector('#Tooltip').ej2_instances[0].close();
}
})
} |