-
30 Nov 2010 3:05 AM #1
qtip in compositefield
qtip in compositefield
How do you make qtip for labels in a compositefield, is this possible?
For a regular texfield, it would have been something like this:
However, the same approach doesn't work in a label inside a compositefield:PHP Code:xtype : 'textfield',
fieldLabel: '<span ext:qtip="This is the title">'+ title +'</span>',
PHP Code:xtype : 'label',
style: 'padding-top : 4',
text : '<span ext:qtip="This is the title">'+ title +':' +'</span>'
-
19 Dec 2012 5:48 AM #2
It is possible, but you have to use Ext.QuickTips:
Remember to call Ext.QuickTips.init(); during application init.Code:{ xtype: 'compositefield', fieldLabel: 'I am the label', items: [ ... whatever ... ], listeners: { 'render': function(c){ Ext.QuickTips.register({ target: c.label, text: 'I am the hint text displayed on mouse over' }); }, scope: this } }
Similar Threads
-
[OPEN-1275] Ext.form.CompositeField don't show qtip error when msgTarget='qtip'
By leshcoff in forum Ext 3.x: BugsReplies: 1Last Post: 31 Jul 2011, 11:58 PM -
Confused by CompositeField
By mankz in forum Community DiscussionReplies: 2Last Post: 14 Oct 2010, 10:10 AM -
How got a normal qtip and a error qtip in same time?
By khatuido in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 5 Feb 2008, 5:48 AM


Reply With Quote