fires when the text part of a tree item is clicked, but after the default onClick functionality has been processed
id | string|number | id of the clicked item |
boolean | true|false, to confirm/deny an item's selection |
myTree.attachEvent("onClick", function(id){
// your code here
});
// if the tree contains items with link-like functionality
myTree.attachEvent("onClick",function(id){
window.open(myTree.getUserData(id,"href"));
return true;
});
The event is blockable. Returning "false" will prevent the default action.
Back to top