Javascript fullCalendar - 事件标题和详细信息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3921827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 06:38:55  来源:igfitidea点击:

fullCalendar - Event title and detail

javascriptjqueryfullcalendarrendering

提问by Pierre de LESPINAY

I'm using the pretty fullCalendar jQuery plugin.

我正在使用漂亮的 fullCalendar jQuery 插件。

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)

这里的详细信息是每个会话的参与者。(溢出隐藏在细节上)

回答by orolo

See This(Eureka's Answer)

看到这个(尤里卡的回答)

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

回答by filip.georgiev

For anybody having this issue in Angular 8:

对于在 Angular 8 中遇到此问题的任何人:

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