onLimitViolation
Description
Fires when the user tries to set for an event the time that is currently limited/blocked
onLimitViolation: (id: string, obj: object) => void;
Parameters
id- (required) string - the event idobj- (required) object - the 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:
- the limit_start and limit_end configuration options
- the addMarkedTimespan method
note
If you return 'true' from the handler, the related event won't be blocked and can have non-allowed time.
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.