Add Icon(s) in first line of an event (fullCalendar)

前端 未结 7 846
栀梦
栀梦 2020-12-05 15:38

For specific attributes of an event to be displayed in the \'fullCalendar\' matrix I would like to add icons to show them, for \'completed\' an (i) button, or an URL symbol

7条回答
  •  爱一瞬间的悲伤
    2020-12-05 16:39

    With this you can add text or HTML to the title of your events in Fullcalendar

    eventRender: function(event, element) {
    
                var icon  = 'The icon you want, HTML is possile';
                    $(element).find('.fc-time').append(icon);
                }
    

提交回复
热议问题