DHTMLX Docs & Samples Explorer

onBeforeAdd Event

Parameters:

  • object which will be added
  • index, at which item will be added, optional
  view.attachEvent("onBeforeAdd", function (obj, index){
       //any custom logic here
       return true;
  });

Event is blockable, if non-true value returned from custom method, default reaction will be blocked