View Full Version : qtip in compositefield

30 Nov 2010, 3:05 AM
How do you make qtip for labels in a compositefield, is this possible?

For a regular texfield, it would have been something like this:

xtype : 'textfield',
fieldLabel: '<span ext:qtip="This is the title">'+ title +'</span>',

However, the same approach doesn't work in a label inside a compositefield:

xtype : 'label',
style: 'padding-top : 4',
text : '<span ext:qtip="This is the title">'+ title +':' +'</span>'

19 Dec 2012, 5:48 AM
It is possible, but you have to use Ext.QuickTips:

xtype: 'compositefield',
fieldLabel: 'I am the label',
items: [ ... whatever ... ],
listeners: {
'render': function(c){
target: c.label,
text: 'I am the hint text displayed on mouse over'
scope: this

Remember to call Ext.QuickTips.init(); during application init.