EXT tree 事件

treePanel.on({

            //目录树单击事件

            'itemclick' : function(view, rcd, item, idx, event, eOpts) {

                var dirid = rcd.get('id'); //节点id

                var dirtype = rcd.raw.dirtype; //自定义数据

        },

        //目录树双击击事件

            'itemdblclick' : function(view, rcd, item, idx, event, eOpts) {

                var dirid = rcd.get('id'); //节点id

                var dirtype = rcd.raw.dirtype; //自定义数据

        },

            //目录数右键事件

            'itemcontextmenu' : function(view, rcd, item, idx, event, eOpts) {

                event.preventDefault();

                this.showTreeItemMenu(rcd, event); //自定义处理函数

            },

            scope : this

        });

你可能感兴趣的:(EXT tree 事件)