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
fullCalendar - Event title and detail
提问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
回答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);
}