0
我正在尝试使用fullcalendar.js中的eventConstraint功能,该功能与已创建的事件完美协作。 我的问题是如何限制新事件?fullcalendar.js选择约束
我正在考虑让'selectable'为false,并使用eventMouseover和eventMouseout分别将其设置为true/false时,它将鼠标悬停在约束性背景事件上。但问题是这两个回调不会在后台事件中触发。
我正在尝试使用fullcalendar.js中的eventConstraint功能,该功能与已创建的事件完美协作。 我的问题是如何限制新事件?fullcalendar.js选择约束
我正在考虑让'selectable'为false,并使用eventMouseover和eventMouseout分别将其设置为true/false时,它将鼠标悬停在约束性背景事件上。但问题是这两个回调不会在后台事件中触发。
您应该使用select contraint方法。它的工作原理是“eventContraint”你已经使用完全相同的:
{
start: '10:00', // a start time (10am in this example)
end: '18:00', // an end time (6pm in this example)
dow: [ 1, 2, 3, 4 ]
// days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
}
请记住,如文档说:
仅适用于能够选择的选项被激活。
这将禁止用户在约束中用一个不错的游标创建新的事件。
哇,我很抱歉 我不知道我是如何错过这个。 我的编码真的很晚。 – david