PDA

View Full Version : Mouseover events for TreeNodes



Litre
9 Apr 2010, 10:21 AM
I've been trying to get a mouseover event for a treenode. It's obvious there is already a mouseover as the node is highlighted on mouseover, but how do I access it?

Treenode has no getEl() so I can't get the div and add it.

Then I tried to make the treenode.text an <a href> with an onMouseOver attribute, but when I added that the treenode wouldn't even show when I expanded the parent.

Any leads or ideas?

Litre
9 Apr 2010, 10:25 AM
Oh, there's a TreeNodeUI... looking into it now, my bad, still haven't found a sol'n though

Litre
9 Apr 2010, 12:08 PM
Yay figured it out

curNode = mainLeftMenu.items.itemAt(0).getRootNode().findChild('id', 'idValue');
curNode.getUI().getAnchor().setAttribute('onMouseOver', 'Ext.Msg.alert("", "Hello World"); return true;');