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

前端 未结 7 837
栀梦
栀梦 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:43

    this works for me :

    in full calendar 1.5.4

    eventRender: function(event, element) { 
         //this will add <span> and you can append everthing there
         element.find("div").find("span").before("<span/>").addClass("iconcon");
    }
    

    and put in CSS

    .iconcon:before{  //if icon not there then change :before with :after
      font-family: "FontAwesome";  
      content: "\f1fd\00a0";   // \00a0 is blank space
      color: #fff;
    }
    
    0 讨论(0)
提交回复
热议问题