ExtJS禁用Treelist悬停

时间:2017-05-16 16:06:14

标签: extjs

如何禁用ExtJS树形图组件(在微模式中)的悬停事件,以便只通过单击/触摸而不是悬停/鼠标悬停/鼠标中心打开浮动框。

(使用ExtJS 6.2 Classic)

1 个答案:

答案 0 :(得分:1)

这会覆盖元素配置。

Ext.define('Admin.view.main.TreeList', {
extend: 'Ext.list.Tree',
requires: [
],
xtype: 'pdmtreelist',
ui: 'navigation',
micro:true,
expanderFirst: false,
expanderOnly: true,

element: {
    reference: 'element',
    listeners: {
        click: 'onClick',
        mouseenter: 'onMouseEnter',
        // mouseenter: Ext.emptyFn,
        // mouseover: Ext.emptyFn,
        mouseleave: 'onMouseLeave',
    },
    children: [{
        reference: 'toolsElement',
        listeners: {
            mouseover: Ext.emptyFn
            //mouseover: 'onToolStripMouseOver'
        }
    }]
}



});