'eventRender disappears in fullcalendar v5

Version : Fullcalendar-Scheduler v5 beta2

I tried eventRender like below in chrome:

document.addEventListener('DOMContentLoaded', function() {
    var calendarEl = document.getElementById('planningMix');
    var planningMix = $(calendarEl);
    var calendar = new FullCalendar.Calendar(calendarEl, {
        //...
        eventRender: function(info) {
            debugger
          },
        events: function(d, successCallback, failureCallback) {
           //...
        }
    });

    calendar.render();
});

When I run this code, "debugger" didn't fired. eventRender has became another name in V5 ?



Solution 1:[1]

those who were going to upgrade from V4 to V5, check this document upgrading-from-v4, there were many changes which we need to consider while upgrading.

Example of EventContent

eventContent: function (arg) {

            var event = arg.event;
            
            var customHtml = '';
            
            customHtml += "<span class='r10 font-xxs font-bold' style='overflow: hidden;'>" + event.title + "</span>";
            
            customHtml += "<span class='r10 highlighted-badge font-xxs font-bold'>" + event.extendedProps.age + text + "</span>";
                          

            return { html: customHtml }
        }

Solution 2:[2]

You can use this :

eventClick: function (info) {
            showdata(info.event.id);
         }

I used v3 and upgrading to v5 and still working.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sajjad Ali Khan
Solution 2 Reza Sheshbolooki