1
我想创建一个TreePanel中是像一个文件夹浏览器。我正在尝试在我的树面板中单击节点扩展器(如以下屏幕截图)时查找事件。树面板“nodeexpand”在Extjs6.5事件不工作
有谁知道什么是正确的事件?
下面是我的看法代码:
Ext.define('HDDTest.view.mod.searchDetails', {
extend: 'Ext.Panel',
xtype:'searchDetails',
controller: 'home',
requires: [
'HDDTest.view.mod.PreviewPlugins.PreviewPlugin',
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.toolbar.Paging',
'Ext.tip.QuickTipManager'
],
items: [
{
xtype: 'treepanel',
iconCls: 'icon-tree',
title: 'Tree',
collapsible: true,
height: 300,
padding:'0 20 0 0',
rootVisible: false,
id: 'treePanel',
name:'treePanel',
store: {
type: 'TreeBufferStore'
},
listeners: {
itemclick: 'onNodesSelected',
nodeexpand : 'onNodesSelected2' //<== It can not work
},
columns: [{
xtype: 'treecolumn', //this is so we know which column will show the tree
text: 'Representation',
width: 360,
sortable: true,
dataIndex: 'text',
locked: true
}, {
text: 'Parents',
width: 430,
dataIndex: 'From',
sortable: true
}, {
text: 'NCID',
width: 430,
dataIndex: 'ncid',
sortable: true
}]
}
]
});
我什么也没得到。我该怎么办?
最后我找到了一个正确的事件叫'beforeload'。感谢您的帮助,Njdhv。 –
非常欢迎☺ –