checks whether the specified event occurs at the time that has already been occupied by another event(s)
event | object | the event object |
boolean | returns false, if the event time has already been occupied, otherwise - true. |
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'
The method requires the collision plugin to be activated.
Note, the method invokes the onEventCollision event.