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

前端 未结 7 841
栀梦
栀梦 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:37

    eventRender: function (calEvent, element) {
    
        element.find("div.fc-content").prepend(""); 
    }
    

    -- listener event click

    eventClick: function (calEvent, jsEvent, view) {
    
        if (jsEvent.target.href != undefined) {
            //click on a icon in event
            "http://localhost:64686/imagens/IconExperience/16x16/whatsapp-icon.png"
            etc...
        }
        alert(jsEvent.target.href);
    }
    

提交回复
热议问题