PDA

View Full Version : Tool tip



MCSchlemme
20 Oct 2011, 11:41 AM
Hi,

I have a grid and would like to put a tool tip on the column headings so when the user hovers over any column, a tool tip with more explaination of what in the column would appear.

Thanks...

skirtle
21 Oct 2011, 12:08 AM
Here's one way.


Ext.tip.QuickTipManager.init();

Ext.create('Ext.grid.Panel', {
...
columns: [
{
...
listeners: {
afterrender: function(col) {
col.getEl().set({'data-qtip': 'Tooltip Text'});
}
}
}
]
});