PDA

View Full Version : Display a panel on Button tooltip



Zinnia
8 Dec 2014, 4:14 AM
Hi All,

I have a panel, having some fields (text field and comobox). Is it possible to show this panel on button tool tip.

Any help is appreciated.


Thanks
Zinnia

chamacs
8 Dec 2014, 1:57 PM
I know this doesn't directly answer your question, but the tooltip shows up on mouseover. So why not display the panel on the button's mouseover event?

Zinnia
9 Dec 2014, 5:05 AM
How to Show that panel On that button position, so that it will look like tool tip to that button

Zinnia
9 Dec 2014, 5:55 AM
Resolved this issue, here is the sample code

{
xtype: 'button',
text: 'click',
listeners: {
render: function(butn){
var tip = Ext.create('Ext.tip.ToolTip', {
target: butn.el,
items:[{
xtype: 'panel',
items:[{
xtype:'textfield',
fieldLabel:'Testing'
}]

}]

});
}
}
}