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:
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);
}
精彩评论