Parameters:
view.attachEvent("onBeforeEditStart", function (id){ //any custom logic here return true; });
Event is blockable, if non-true value returned from custom method, default reaction will be blocked