开发者

ExtJS Can i prevent field tooltip from overriding validation tooltip

开发者 https://www.devze.com 2023-04-03 23:54 出处:网络
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.

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

精彩评论

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