Dynamic event template in FullCalendar

前端 未结 5 1057
北海茫月
北海茫月 2020-12-30 13:13

Is there any way to dynamically change event template in FullCalendar?

Update. What I want is to specify new event html (e. g. in eventRender callba

5条回答
  •  暖寄归人
    2020-12-30 13:45

    Use the eventRender(callback) function to change the event template. Here is how you can add a tip to the event:

    eventRender: function(event, element, view) { 
       element.qtip({
          content: event.description
       });
    }
    

    With this function you can fully customize any detail of the event that is displayed including adding a complete new event template. For more details check out the documentation: http://fullcalendar.io/docs/event_rendering/eventRender/

提交回复
热议问题