PDA

View Full Version : How to show invalid message box without moving mouse?



ragecf
25 Apr 2013, 6:08 PM
Dear all,

I have a text field and msgTarget is qtip.

When input message is invalid, how to automatically show the qtip message box without moving mouse to the text field?

Thanks.

28 Apr 2013, 7:46 PM
see: http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.Labelable-cfg-msgTarget

ragecf
28 Apr 2013, 9:28 PM
see: http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.Labelable-cfg-msgTarget

Sorry for my poor english.

In API: qtip Display a quick tip containing the message when the user hovers over the field. This is the default.

But I want to display the message content (format is qtip, not display in under or side) without mouse hovers over the field.

In other words, how to show the qtip manually?

slemmon
28 Apr 2013, 11:15 PM
There's not a public method/property that allows you to get access to the quicktip used to show an invalid field for you to then show() it with.

You can do msgTarget: 'none' if you want to manage the tooltip yourself, but you'll need to build the qtip and display it manually.