onDrag
fires when the item was dragged and dropped on some other item, but before item's moving has been processed
boolean onDrag(string|number sId,string|number tId,string|number id,object sObject,object tObject);
| sId | string|number | id of the source item |
| tId | string|number | id of the target item |
| id | string|number | id of the item before which the source node will be inserted (if the node is dropped as a sibling) |
| sObject | object | dhtmlXTreeObject instance of the source tree |
| tObject | object | dhtmlXTreeObject instance of the target tree |
| boolean | true to allow dran-and-drop start |
Example
myTree.attachEvent("onDrag", function(sId, tId, id, sObject, tObject){
// your code here
});
Back to top