extjs 用代码触发监听事件
请问如何用代码触发下面TreePanel中的Listeners监听'click'newExt.tree.TreePanel({id:'ColligateSearch_tr...
请问如何用代码触发下面TreePanel中的Listeners监听'click'
new Ext.tree.TreePanel({
id :'ColligateSearch_tree',
border :false,
useArrows:true,
autoHeight:true,
lines:true,
root:new Ext.tree.TreeNode({
id:'ColligateSearch_treeNode',
iconCls: 'ColligateSearch',
leaf :true,
nodeName:'ColligateSearch',
mpage:'colligateSearch.html?businessName=archive',
listeners :{'click':{fn:function(node,e){
我尝试的方法
Ext.getCmp('ColligateSearch_treeNode').fireEvent('click'); 此代码已经证实无效
Ext.getCmp('ColligateSearch_treeNode').click();此代码已经证实无效
监听事件是上面 root中的new treeNode中的 listeners 'click' 展开
new Ext.tree.TreePanel({
id :'ColligateSearch_tree',
border :false,
useArrows:true,
autoHeight:true,
lines:true,
root:new Ext.tree.TreeNode({
id:'ColligateSearch_treeNode',
iconCls: 'ColligateSearch',
leaf :true,
nodeName:'ColligateSearch',
mpage:'colligateSearch.html?businessName=archive',
listeners :{'click':{fn:function(node,e){
我尝试的方法
Ext.getCmp('ColligateSearch_treeNode').fireEvent('click'); 此代码已经证实无效
Ext.getCmp('ColligateSearch_treeNode').click();此代码已经证实无效
监听事件是上面 root中的new treeNode中的 listeners 'click' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询