checkLimitViolation

checks whether the specified event takes place at the blocked time period

boolean checkLimitViolation(object event);

Parameters

eventobjectthe event object

Returns

booleanreturns true, if the event occurs at the blocked time, otherwise - 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); //returns 'true' or 'false'

Required extension: ext/dhtmlxscheduler_limit.js
Details

Note, the method invokes the onLimitViolation event.

See also
Back to top