View Full Version : Problem with tooltip on a tree view

26 Apr 2012, 11:39 PM
Hello everybody,

I need your help because I'm stuck. I have a tree view with root and nodes which have children. I need to add tooltip to my nodes and their children. I want to custom these tooltips : width, background-color, position... Can I do this with property qtip ? or with a Ext.tip.QuickTip (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.tip.QuickTip), what can I do ?

Thanks for your help,


27 Apr 2012, 12:27 AM
Try this

var tree = Ext.create('Ext.tree.Panel', {
columns: [{
xtype: 'treecolumn',
header: 'Text',
dataIndex: 'text',
renderer: function(value, metaData){
metaData.tdAttr = 'data-qtip="qtip message" data-qtitle="qtip title" data-qclass="abc" data-qwidth="100"';
return value;