PDA

View Full Version : Tooltip in tree panel's tools list



lakilevi
19 Jul 2010, 2:58 AM
Hello.
I would use an Ext.Tooltip object as help function in a treepanel. I have the following code



new Ext.tree.TreePanell({
region: 'west',
tbar: [cat_add_button,cat_delete_button],
tools:[{
id:'help',
qtip:new Ext.ToolTip({
html: 'Click the X to close me',
title: 'My Tip Title',
autoHide: false,
closable: true,
draggable:true
})
}],
....
});


But does appear only the title, no html content and no X button to close. What is the problem?

Thank you very much!

Condor
19 Jul 2010, 3:04 AM
qtip can be a String or a QuickTip config object. It is not allowed to be a Tooltip instance.

lakilevi
19 Jul 2010, 3:10 AM
Thanks Condor.
Than can I solve somehow to appear on mouseover the "?" icon an Ext.Tooltip window with the help texts?
I would use the tooltip exactly as in this page http://www.sencha.com/deploy/dev/examples/simple-widgets/qtips.html on "Anchor right, rich content" button only I would put this on the "?" icon in my tools part.
I use many if these help icons, so the reference by ID it is not good in my case.

Thank you very much!