javascript - Tooltip in fullcalendar not working -


everyone! i'm trying show tooltip on events in fullcalendar. it's not working , show in console message

uncaught syntaxerror: unexpected token (

what can problem? js-function code:

$('#calendar').fullcalendar(function() {     eventafterrender: function(event, element) {         $(element).tooltip({             title: event.title,             container: "body"         });     } }); 

you passing function. should pass options , callbacks. read docs

$('#calendar').fullcalendar({   //removed function() here     eventafterrender: function(event, element) {         $(element).tooltip({             title: event.title,             container: "body"         });     } }); 

Comments