ExtJs的Actioncolumn工具提示显示单击图像而不是鼠标悬停



我是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

最新更新