我试图向表单字段添加一个快速提示(QuickTip),但无法找到使我的代码工作的方法。首先,我尝试使用qtip
属性。
{
fieldLabel: 'Last Name',
qtip:'This tip is not showing at all',
name: 'last'
}
然后使用Ext.tip.ToolTip
类:
Ext.create('Ext.tip.ToolTip', {
target: 'rating_field',
anchor: 'right',
trackMouse: true,
html: 'This tip is not showing at all'
});
Ext.QuickTips.init();
这里有一个包含源代码的jsfiddle:jsfiddle