我必须在文本字段的焦点事件上显示带有 xtemplate 的工具提示
我试过下面的代码,
var tf = new Ext.form.TextField({
name: 'name',
fieldLabel: 'field label',
width: 100,
allowBlank: false,
listeners : {
focus : function(tb, e) {
Ext.QuickTips.register({
target: tf,
title: 'QT Title',
text: 'QT Text'
});
}
}
});
必须感谢任何帮助。