How do I replace XmlTreeLoader in Ext JS?

Posted by stinkycheeseman on Stack Overflow See other posts from Stack Overflow or by stinkycheeseman
Published on 2010-06-08T20:07:30Z Indexed on 2010/06/08 20:12 UTC
Read the original article Hit count: 387

Filed under:
|
|
|

Ext.ux.xmltreeloader is now deprecated and I'm trying to update it but I'm not sure exactly how to do so. Here's my code:

rmg.sscp.search.xmlLoader = Ext.extend(Ext.ux.tree.XmlTreeLoader, {
 processAttributes : function(attr){
     var text = attr.tagName;
    attr.text = text + ' ' + attr.textContent;
    attr.loaded = true;
    attr.expanded = true;
}

});

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Xml