본문으로 건너뛰기

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 이벤트를 트리거한다는 점을 유념하세요.

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.