onLimitViolation
Description
当用户尝试为事件分配一个当前受限或被阻止的时间时触发
onLimitViolation: (id: string, obj: object) => void;
Parameters
id- (required) string - 事件的idobj- (required) object - 事件对象
Example
scheduler.attachEvent("onLimitViolation", function (id, obj){
//这里可以添加自定义逻辑
});
Details
每当用户尝试将事件的时间设置为受限或被阻止的时间段时,此事件就会触发。这些限制可以通过以下方式配置:
- limit_start 和 limit_end 选项
- addMarkedTimespan 方法
注释
从此事件处理程序返回 'true',允许事件绕过限制并被分配到不允许的时间。
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.