我正在尝试为我的按钮添加工具提示。我尝试了不同的方法,但当我将鼠标移动到该按钮下面时没有任何反应。这是我尝试添加工具提示时代码的一部分:
this when i created the button called guestButton
{
xtype : 'button',
id : 'guestButton',
text : 'Guest User',
handleMouseEvents: true,
width : 80,
x : 70,
y : 150,
formBind : false,
handler : function() {
this.up().LoginGuest();
}
在这里,当我尝试创建工具提示时
var tooltips = [{
target: 'guestButton',
html: 'A very simple tooltip'
}];
Ext.each(tooltips, function(config) {
Ext.create('Ext.tip.ToolTip', config);
});
Ext.QuickTips.init();
感谢!