everyone! I'm trying to show tooltip over events in fullcalendar. But it's not working and show in console this message
Uncaught SyntaxError: Unexpected token (
What can be a problem? This is my js-function code:
$('#calendar').fullCalendar(function() {
eventAfterRender: function(event, element) {
$(element).tooltip({
title: event.title,
container: "body"
});
}
});
In FullCalendar 4, use eventRender function:
eventRender: function (info) {
$(info.el).tooltip({ title: info.event.title });
}