javascript - FullCalendar.io。无法呈现背景事件

标签 javascript function ionic-framework fullcalendar

我正在按照此答案中的示例进行操作:

How can I create an event based on pattern for calendar?

还是有问题。当我尝试在后台模式下添加渲染事件(添加渲染:“背景”)时,事件不显示。但是,当我删除它时,事件会按原样显示。

这是我的代码:

          events.push({
            title: schedule[s].title,
            color: schedule[s].color,
            // we have to clone because the add() call below mutates the date
            start: day.clone(),
            allday: true,
            rendering: 'background'<--putting this line causes error in events rendering. removing it(as per the tutorial) is okay.
          });

我该怎么做

最佳答案

那是因为 allday 参数为真。根据文档:

Background events that are timed will only be rendered on the time slots in agenda view. Background events that are all-day will only be rendered in month view or the all-day slots of agenda view.

来源:Background-events

关于javascript - FullCalendar.io。无法呈现背景事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50522671/

相关文章:

javascript - 如何在 3-5 秒后停止加载动画?

python - 列表和 While 循环

c++ - 轻量级 boost::bind

javascript - 基于选择列表应用过滤器 - Angular JS

javascript - Backbone UI 模型与 Handlebars 绑定(bind)

javascript - 用于输入用户信息的动态 PHP 代码

function - shell 脚本函数参数/参数

node.js - Ionic - 无法加载空的 config.xml 文件

android - iOS 上的 ionic 谷歌地图地理编码不起作用

javascript - 将 ContentEditable div 设置为只读?