View Full Version : Use of tooltips
iNes14
14 Dec 2011, 2:18 AM
Hello !
I wonder if it's possible to render a extjs panel into a tooltip, and not just html text ?
Thank you :)
tvanzoelen
14 Dec 2011, 4:09 AM
It should be possible because ToolTip inherited Panel. Then it must be possible to use the items property
Ext.create('Ext.tip.ToolTip', {
// The overall target element.
target: el,
trackMouse: true,
items: [puthereyourpanel], <--- put a panel in there and try it out
renderTo: Ext.getBody(),
listeners: {
beforeshow: function updateTipBody(tip) {
}
}
});
iNes14
14 Dec 2011, 6:20 AM
Thank for your help, it works fine !
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.