fires right when an item in the tree starts to open, but before this item has opened
id | string|number | the id of the node that will be opened |
state | number | the current open state of the item |
boolean | true - confirms opening |
myTree.attachEvent("onOpenStart", function(id, state){
// your code here
});
The event is also available for "non-closable" nodes and for the nodes without the open/close functionality. In that case the function's result will be ignored.
The "state" parameter's values: