Fullcalendar - Can we add custom data to our event Json Data?

前端 未结 5 1166
逝去的感伤
逝去的感伤 2021-01-11 19:55

I want to send a type in my Event Json Response.

Here is my code:

$(\'#calendar\').fullCalendar({

eventSources: [ 

{\"id\":\"46_l\",\"title\":\"Cus         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-11 20:51

    In the new version you should do this:

    eventRender: function (info) {
        info.el.firstChild.innerHTML = info.event.extendedProps.type + " " + info.event.extendedProps.customEventsClass;
    }
    

提交回复
热议问题