I need to prevent tree node anchor from navigating current page, but the anchors have to keep showing its link (no hash).
I tried to put return false when it sets up the listener:
...
listeners : {
click : function (node) {
/* some processes */
return false;
}
}
...
Seems it is useless, the anchors are still firing its href.
I can’t do onClick injection for all nodes, because the nodes are loaded on demand.
Any idea’s?
Not necessarily, have you thought about doing this with a different approach, i.e.: