refer to the HyperTree in this link
How can I add an event to handle click events of edges?
Thanks.
What about this:
//Attach event handlers and add text to the
//labels. This method is only triggered on label
//creation
onCreateLabel: function(domElement, node){
domElement.innerHTML = node.name;
$jit.util.addEvent(domElement, 'click', function () {
ht.onClick(node.id, {
onComplete: function() {
ht.controller.onComplete();
}
});
});
},
You can find this code in this link, under the section "Hypertree", and that's the code that manages clicks on nodes. Is that what you wanted to know?
EDIT:
The problem seems toreside in the type of "edge". Changing it from "hyperline" to "line", as suggested in this question, may do the trick, allow the binding of a click event.