PDA

View Full Version : Tooltip on Treepanel (not on the nodes)



scaddenp
10 Jul 2011, 9:08 PM
Lots of posts on tips for tree nodes, but I just one tooltip for the whole tree (to remind the users to right click on nodes because there is useful context menu on it). How do you achieve this?

skirtle
13 Jul 2011, 3:25 PM
Bit like this maybe?


Ext.QuickTips.init();

Ext.QuickTips.register({
target: tree.body,
title: 'Title',
text: 'Text',
width: 100
});

scaddenp
13 Jul 2011, 3:37 PM
Thanks skirtle, but sadly no. Nothing comes up.

skirtle
14 Jul 2011, 1:28 AM
It definitely works. My only doubt over it was the slightly annoying way the tips jump around as you move over the nodes.

Make sure your tree is rendered before you add the tip. Logging tree.body will confirm.