Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
Originally Posted by
Condor
Code:
Ext.override(Ext.form.Field, {
afterRender: Ext.form.Field.prototype.afterRender.createSequence(function(){
if(this.qtip){
var target = this.getTipTarget();
if(typeof this.qtip == 'object'){
Ext.QuickTips.register(Ext.apply({
target: target
}, this.qtip));
} else {
target.dom.qtip = this.qtip;
}
}
}),
getTipTarget: function(){
return this.el;
}
});
Ext.override(Ext.form.Checkbox, {
getTipTarget: function(){
return this.imageEl;
}
});
This works quite well, but I noticed that the tool tips on the fields disappear after resetting the form. How should the method reset be overridden to fix this problem?
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us