本文介绍了如何以全日历显示事件的描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以全日历显示事件的描述?
How can I show a description of Events in fullcalendar?
我有一些带有标题和描述的事件.
I have events that have a title and a description.
那我怎么显示说明呢?
推荐答案
添加标题和描述时,它将连接在一起.
When you add the title and description it will concatenate.
使用下面的代码,您可以将标题连接起来:
Using the below code, you can concatenate with the title:
eventRender: function (event, element, view) {
element.find('.fc-title').append('<div class="hr-line-solid-no-margin"></div><span style="font-size: 10px">' + event.description + '</span></div>');
},
这篇关于如何以全日历显示事件的描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!