I am begining in Extjs and i would like to make a tree (with tree.Panel) which contents both file and folder. Moreover I would like to display specific icons for each type of node : a file must not have a folder child so the icon "create folder" which must only appear on folder nodes. I already have a tree with a boutton "delete" which exists for both types.
I presume I must listen for a event like "renderer" and ask for the type of my node and load the corresponding icon but I don't know how to do : the event comes from a different column that the tree column.
How can I get the node type (leaf:true/false) from the actionColumn which will content the icon?