开发者

fullCalendar - Event title and detail

开发者 https://www.devze.com 2023-01-19 23:29 出处:网络
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:

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

精彩评论

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