PDA

View Full Version : Extending extjs tree node



ankuravlani
26 Oct 2009, 1:09 PM
Hi,

I am trying to extend extjs treenode,

CustomTreeNode = Ext.extend(Ext.tree.TreeNode, {
getAttribute:function(attribute){
if(this.attributes)
return this.attributes[attribute];

return;
}
})

but it seems to be not working.

Can anyone please highlight what is the correct way to do this?

Thanks
Ankur.