X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.tree.TreeLoader.html?ds=inline diff --git a/docs/output/Ext.tree.TreeLoader.html b/docs/output/Ext.tree.TreeLoader.html index 8423993d..9420540f 100644 --- a/docs/output/Ext.tree.TreeLoader.html +++ b/docs/output/Ext.tree.TreeLoader.html @@ -1,39 +1,39 @@ -
Properties Methods Events Config Options Direct Link
Observable
  TreeLoader

Class Ext.tree.TreeLoader

Package:Ext.tree
Defined In:TreeLoader.js
Class:TreeLoader
Subclasses:XmlTreeLoader
Extends:Observable
A TreeLoader provides for lazy loading of an Ext.tree.TreeNode's child -nodes from a specified URL. The response must be a JavaScript Array definition -whose elements are node definition objects. e.g.: -
[{
-        id: 1,
-        text: 'A leaf Node',
-        leaf: true
-    },{
-        id: 2,
-        text: 'A folder Node',
-        children: [{
-            id: 3,
-            text: 'A child Node',
-            leaf: true
-        }]
-   }]
-

-A server request is sent, and child nodes are loaded only when a node is expanded. -The loading node's id is passed to the server under the parameter name "node" to -enable the server to produce the correct child nodes. -

-To pass extra parameters, an event handler may be attached to the "beforeload" -event, and the parameters specified in the TreeLoader's baseParams property: -
myTreeLoader.on("beforeload", function(treeLoader, node) {
-        this.baseParams.category = node.attributes.category;
-    }, this);
-This would pass an HTTP parameter called "category" to the server containing -the value of the Node's "category" attribute.

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