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
Post a Comment