-
6 Aug 2010 5:41 AM #1
toolTip for textArea control
toolTip for textArea control
Hello guys,
I spent couple of hours trying in vain make tool tips work for TextArea control created dynamically.
I added QuickTip initialization and then specified tooltip config property for the control, but it doesn't work.
BTW tooltip property is not documented at all. I found it browsing the source code.
Here is the code:
On runtime code from above transforms to following html (only part is shown):Code:Ext.QuickTips.init(); ... var txtDescription = new Ext.form.TextArea({ xtype: 'textarea', height: 120, fieldLabel: 'Description', anchor: '99%', listeners: iDescription, tooltip: 'Please describe the product briefly.', value: this.configObj.product.Description }); ....
What I basically need to do is just to add new attribute to html from above:HTML Code:<textarea name="ext-comp-1147" id="ext-comp-1147" autocomplete="off" style="width: 1396px; height: 120px;" class="x-form-textarea x-form-field"/>
If i do it manually (via FireBug) it works perfectly (see attachment).HTML Code:<textarea ... ext:qtip="Please describe the product briefly." />
Any thoughts?
P.S. It seems that this is a problem not for TextArea only but for any container controls, but works fine for Ext.Action
-
6 Aug 2010 5:45 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
You could use:
(there are also plugins/overrides that can do this for you)Code:listeners: { render: function(c){ Ext.QuickTips.register({ target: c.getEl(), text: 'Please describe the product briefly.' }); } }
-
6 Aug 2010 6:32 AM #3
Thank you, Mr. Condor!
It helped
BTW, I've realized what was my mistake. tooltip config property is valid for buttons, datepickers etc. but it is not used in conteiner controls.
-
5 Apr 2012 2:55 AM #4
I think Ext.QuickTips.init need to be called before register().
Similar Threads
-
Get Tooltip associated with a control
By r_honey in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 14 Jan 2010, 10:56 AM -
Replace textarea with Ext.form.TextArea
By UnarmedHunter in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 26 Oct 2009, 1:00 AM -
equivalent control for GWT-Ext ColumnTree control
By ialexei in forum Community DiscussionReplies: 2Last Post: 8 Jan 2009, 1:40 PM


Reply With Quote