checkLimitViolation
Description
判断给定的事件是否与被阻止的时间段重叠
checkLimitViolation: (event: any) => boolean
Parameters
event- (required) object - 事件对象
Returns
isBlocked- (boolean) - 如果事件发生在被阻止的时间内,返回 true,否则返回 false。
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 isBlocked = scheduler.checkLimitViolation(event); //返回 'true' 或 'false'
Details
注释
该方法需要激活 limit 插件。
请注意,该方法会触发 onLimitViolation 事件。
Related API
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.