onLimitViolation

fires when the user tries to set for an event the time that is currently limited/blocked

void onLimitViolation(string id,object obj);
idstringthe event id
objobjectthe event object

Example

scheduler.attachEvent("onLimitViolation", function  (id, obj){
    //any custom logic here
});

Details

Note, the event is called when the user tries to set for an event the time that is currently limited/blocked through:

If you return 'true' from the handler, the related event won't be blocked and can have non-allowed time.

Back to top