I can't figure out how to show more details in fullcalendar 4 event. Following this post:
[fullcalendar]Have listMonth display more details than month
I tried this code without success:
eventRender: function( info ) {
if (info.view.type == "timeGridWeek")
{
info.el.find('.fc-title').html('something');
}
},
but i'm getting error : failure to parsing JSON. Do you have any idea, what i'm doing wrong? Thank you.
edit: I figured out that get div with class name fc-title i can get with this code:
eventRender: function(info) {
console.log(info.el.getElementsByClassName("fc-title"));
},
but can't find out how to append div or span or whatever element there.