Handling itemclick event on tree panel Extjs 4
what I am trying to do is to get different reaction on a different tree LEAF click! var myTree = Ext.create('Ext.tree.Panel', store: store, rootVisible: false, border: false, listeners: { itemclick: function(index) { var record = store.getAt(index); alert(record); } } }); I tried with index, to get the index of leaf, nothing. I can get a reaction on a node click, but how to get a specific reaction on every leaf? I also tried giving ID to the leafs, no luck??? Maybe a simple example of itemclick: function(Ext.view.View this, Ext.data.Model record, HTMLElement item, Number index, Ext.EventObject