checkCollision

checks whether the specified event occurs at the time that has already been occupied by another event(s)

boolean checkCollision(object event);

Parameters

eventobjectthe event object

Returns

booleanreturns 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'

Required extension: ext/dhtmlxscheduler_collision.js
Details

Note, the method invokes the onEventCollision event.

See also
Back to top