javascript - EXTJS 4.2 Create tooltips for each form fields in a fieldset -


i trying create tooltip each field in form. added listener in form:

defaults : {             listeners : {                             boxready: function (field) {                     field.el.on({                                     mouseover: function (e) {                                         if(field.tooltip !== undefined) {                                             var tip = field.up('form').formtooltip;                                             tip.update(field.tooltip);                                             tip.showat(e.getxy());                                         }                                     }                                     , mouseout: function () { field.up('form').formtooltip.hide(); }                                 });                 }             }         } 

further have actual tooltip:

formtooltip: ext.create('ext.tip.tooltip',{     delegate:  '.x-form-field-wrap',     renderto: ext.getbody() }) 

now problem while can display tooltip every field in form, if there fieldset able display tooltip fieldset not individual fields. there suggestions getting code work fields inside fieldset? or maybe how add listener each item in fieldset.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -