checkCollision
Description
验证给定的事件是否在相同时段与任何已有事件重叠
checkCollision: (event: any) => boolean
Parameters
event- (required) object - 事件对象
Returns
result- (boolean) - 如果事件时间段已被占用,返回 false,否则返回 true。
Example
var event = {
text : "New Event",
start_date : new Date(2013, 02, 20, 10, 00),
end_date : new Date(2013, 02, 20, 14, 00)
};
var isOccupied = scheduler.checkCollision(event); // 返回 'true' 或 'false'
Details
注释
此方法需要启用 collision 插件。
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.