PDA

View Full Version : Hide tooltip / Quicktip



jeremys
19 Jun 2015, 1:19 AM
Hello everyone,

Extjs version used : 4.2.2


I have a textfield with allowBlank : false. When this property of the config is activate it always display a tooltip with the text you can set thanks to the property blankText.

I don't want this tooltip. How to disable this tooltip?

I've tried all this things :



blankText = '';


In the app.js


Ext.tip.QuickTipManager.disable(); // It disables all the quick tips in the app

In my view :


launch:function(){
var emailTxt = Ext.ComponentQuery.query('#txtEmailRegistrationItemId')[0];
Ext.tip.QuickTipManager.unregister(emailTxt.el);
}


But the tooltip is always displayed...

Thank you for your help.

EPV
19 Jun 2015, 2:14 AM
I'm guessing you have allowBlank:false?!

msgTarget on field handle position of messages and you can of course set that globally.
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.Text-cfg-msgTarget

Example:
https://fiddle.sencha.com/#fiddle/p2f

Good luck / E

jeremys
19 Jun 2015, 2:24 AM
Indeed I made a mistake in my question. The property allowBlank is set to false : "allowBlank:false". Thank you for your answer! "MsgTarget" is exactly the property I was looking for!

EPV
19 Jun 2015, 2:33 AM
Great!