checkLimitViolation

判断给定的事件是否与被阻止的时间段重叠

boolean checkLimitViolation(object event);
eventobject事件对象
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 事件。

See also
返回顶部