checkCollision
Description
Checks whether the specified event occurs at the time that has already been occupied by another event(s)
checkCollision: (event: any) => boolean
Parameters
event- (required) object - the event object
Returns
result- (boolean) - returns false, if the event time has already been occupied, otherwise - 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); // returns 'true' or 'false'
Details
note
The method requires the collision plugin to be activated.
Note, the method invokes the onEventCollision event.
Related API
Related Guides
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.