fires on 4 different stages of the editing process (see the details)
state | number | 0 - before editing starts, 1 - after editing starts, 2 - before editor's closing, 3 - after editor's closing |
id | string|number | id of the edited item |
tree | object | dhtmlXTreeObject instance of the tree |
value | string | value of the editor (for stages 0 and 2) |
boolean | true to allow editing/saving |
myTree.attachEvent("onEdit", function(state, id, tree, value){
// your code here
});
The event fires: