ListMonth-我需要一种可以显示一个月的整天的方法 - 即使一天没有事件
fullcalendar 3
listMonth
仅列出有事件的天数。我需要在
listMonth
视图中显示每月的整个天数,并在ListMonth
中显示一些文本计算。
我如何强制listMonth
视图显示本月的整个天数并将自定义文本传递给每一天渲染?
我想使用dayrender
之类的东西将值传递给使用dayrender
> -
dayRender: function (date, cell){
cell.html("My custom text");
}
但dayrender
似乎与<< dayrender 代码> LISTMONTH 视图。
FullCalendar 3
listMonth
only lists days that have events.I need to display all days of the month in the
listMonth
view, and display some text calculation for each end very day in thelistMonth
view.
How can I force the listMonth
view to show all days of the month and pass a custom text to each day rendered?
I would like to use something like dayRender
to pass the values to each day rendered using dayRender
-
dayRender: function (date, cell){
cell.html("My custom text");
}
But dayRender
does not seem to work with the listMonth
view.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以简单地生成一个包含所选日期
listMonth
视图之间所有几天的数组,以强迫FullCalendar显示所有日历日:您可以在该数组的创建 - 如上所述 - 或之后
Eventrender
You can simply generate an array that contains all of the days in-between the selected date
listMonth
view, to force FullCalendar to show all calendar days:You can add your own custom data, or actual event data in the creation of that array - as seen above - or afterwards during
eventRender