본문으로 건너뛰기

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 플러그인이 활성화되어 있어야 합니다.

이 메서드는 이벤트를 트리거한다는 점을 유의하세요.

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.