javascript - 完整的日历更改图标以在不可编辑的事件上悬停

标签 javascript fullcalendar

我们如何在完整日历中做到这一点?

当鼠标悬停在某个事件上时,如果表单无法编辑/拖动,光标会变成一只手?

我已经尝试覆盖 css 但它不起作用

最佳答案

老话题,但找到了方法:

设置事件为

editable:false,

然后添加

eventRender: function(info) {
    if(!info.event.startEditable) {
        $(info.el).css('cursor','not-allowed');
        return;
    }
}

关于javascript - 完整的日历更改图标以在不可编辑的事件上悬停,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34563926/

相关文章:

javascript - 如何通过 autoValue 将 Meteor.userId() 添加到 SimpleSchema?

javascript - 创建一个水平滚动的 Div

javascript - 如何为鼠标事件处理程序实现额外的按键

javascript - FullCalendar 在设置为本地但不在欧洲/雅典时调整时区

javascript - fullcalendar:只有在我通过事件函数加载我的事件后,才有办法调用 dayRender

javascript - 全日历 : disableResizing is only working on month view

javascript - jQuery 格式日期最小和最大日期 jQuery UI

javascript - SublimeVideo JavaScript

jquery - 如何在完整日历jquery中获取当前显示的日期范围

javascript - Fullcalendar,如何调用月份方法?