bulletsoul
16 Feb 2012, 2:30 AM
I have this class for a menu/navigation function that extends Ext.tree.Panel. The items on the menu are the tree nodes and I am having a hard time to have each menu item's tooltip to appear.
I have set up an itemmouseenter listener but I'm not really sure if I'm doing it right. Here's the snippet:
itemmouseenter: function(view, rec, item, index, e, eOpts){
view.tip = Ext.create('Ext.tip.Tooltip', {
target: view.el,
delegate: view.itemSelector,
trackMouse: true,
renderTo: Ext.getBody(),
listeners: {
beforeshow: function updateTipBody(tip) {
tip.update('Over"' + view.getRecord(tip.triggerElement).get('name') + '"');
}
}
});
},
I have set up an itemmouseenter listener but I'm not really sure if I'm doing it right. Here's the snippet:
itemmouseenter: function(view, rec, item, index, e, eOpts){
view.tip = Ext.create('Ext.tip.Tooltip', {
target: view.el,
delegate: view.itemSelector,
trackMouse: true,
renderTo: Ext.getBody(),
listeners: {
beforeshow: function updateTipBody(tip) {
tip.update('Over"' + view.getRecord(tip.triggerElement).get('name') + '"');
}
}
});
},