我是ExtJs的新手,我在ExtJs网格中使用其中一列作为Actioncolumn,我的要求是显示鼠标悬停事件的工具提示,但我得到了关于图像点击事件的工具技巧,我使用以下代码,
我使用的是Ext.QuickTips.int();
{
xtype: 'actioncolumn',
width: 30,
sortable: false,
menuDisabled: true,
items: [{
icon: '/delete.gif',
getClass: function(value,meta,record,rowIx,colIx, store) {
this.items[0].tooltip = 'Delete Record ';
return 'some-class-name'; // or something if needed
},
handler: function(grid, rowIndex, colIndex) {
store.removeAt(rowIndex);
}
}],
}
您可以直接使用tooltip
配置:http://docs.sencha.com/extjs/4.2.2/#/api/Ext.button.button-cfg-tooltip
以下是一个示例:https://fiddle.sencha.com/#fiddle/17o2