开发者

ExtJS Can i prevent field tooltip from overriding validation tooltip

I am assigning tooltips to a bunch of fields on render (to provide more info about each fi开发者_运维百科eld). I have also have validations defined for each of these fields.

The normal tooltip shows by default on field hover. However on validation failure, the validation tooltip is not being present to the user. The normal tooltip is overriding the validation tooltip.

Is there any way to prevent this from happening.


There is a boolean method, called isValid, which can be called on fields. I would simply call this, check if its true, then render your tooltip, else don't.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜