fires when assert receives 'false' value, i.e. when assertion fails
errorMessage | string | a string with an error from the assert method |
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onError", function(errorMessage){
gantt.message({
text:"Error"
});
return true;
});
the event is blockable. Returning false will prevent the default behavior (showing error message in a red box in the top right)
added in version 4.0
Back to top