开发者

fullCalendar - Event title and detail

I'm usi开发者_开发技巧ng the pretty fullCalendar jQuery plugin.

I'd like to be able to have a title AND a detail on each event as in the screenshot below:

fullCalendar - Event title and detail

Here the details are the participants for each session. (overflow hidden on the detail)


See This (Eureka's Answer)

eventRender: function(event, element)
{ 
    element.find('.fc-event-title').append("<br/>" + event.description); 
}


Based on fullcalendar documentation

V5

If you want to set the title use eventDidMount instead of eventRender

eventDidMount:function(info){
   info.el.title="---- YOUR TEXT----"
}


For anybody having this issue in Angular 8:

eventRender: function(event, element)
{ 
    (element as Element).querySelector('span.fc-title').append("<br/>" + event.description); 
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜