示例如下: http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/#tree-list
目前,它在悬停时显示微模式下的列表,并在单击事件时显示嵌套列表。如何在鼠标悬停事件上打开嵌套菜单。
最佳答案
尝试使用此覆盖:
Ext.define('Ext.list.Tree',{
override:'Ext.list.Tree',
privates:{
onMouseOver: function (e) {
var comp = Ext.Component.fromElement(e.getTarget());
if (comp.isTreeListItem){ comp.expand()}
this.setOverItem(comp && comp.isTreeListItem && comp);
}
}
});
关于javascript - 鼠标悬停在微模式下打开嵌套树列表菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52015326/