Properties Methods Events Config Options Direct Link
Observable
  TreeLoader
    XmlTreeLoader

Class Ext.ux.tree.XmlTreeLoader

Package:Ext.ux.tree
Defined In:XmlTreeLoader.js
Class:XmlTreeLoader
Extends:TreeLoader

A TreeLoader that can convert an XML document into a hierarchy of Ext.tree.TreeNodes. Any text value included as a text node in the XML will be added to the parent node as an attribute called innerText. Also, the tag name of each XML node will be added to the tree node as an attribute called tagName.

By default, this class expects that your source XML will provide the necessary attributes on each node as expected by the Ext.tree.TreePanel to display and load properly. However, you can provide your own custom processing of node attributes by overriding the processNode method and modifying the attributes as needed before they are used to create the associated TreeNode.

Config Options

Config OptionsDefined By
 baseParams : Object
An object containing properties which specify HTTP parameters to be passed to each request for child nodes.
TreeLoader
 clearOnLoad : Boolean
Default to true. Remove previously existing child nodes before loading.
TreeLoader
 directFn : Function
Function to call when executing a request.
TreeLoader
 preloadChildren : Boolean
If set to true, the loader recursively loads "children" attributes when doing the first load on nodes.
TreeLoader
 requestMethod : String
The HTTP request method for loading data (defaults to the value of Ext.Ajax.method).
TreeLoader
 url : String
Equivalent to dataUrl.
TreeLoader

Public Properties

PropertyDefined By
 XML_NODE_ELEMENT : Number
XML element node (value 1, read-only)
XmlTreeLoader
 XML_NODE_TEXT : Number
XML text node (value 3, read-only)
XmlTreeLoader

Public Methods

MethodDefined By

Public Events

EventDefined By