X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.tree.TreeLoader.html diff --git a/docs/output/Ext.tree.TreeLoader.html b/docs/output/Ext.tree.TreeLoader.html index 9ff2d310..9420540f 100644 --- a/docs/output/Ext.tree.TreeLoader.html +++ b/docs/output/Ext.tree.TreeLoader.html @@ -1,26 +1,6 @@ -
Observable - TreeLoader
Package: | Ext.tree |
Defined In: | TreeLoader.js |
Class: | TreeLoader |
Extends: | Observable |
Observable TreeLoader
Package: | Ext.tree |
Defined In: | TreeLoader.js |
Class: | TreeLoader |
Extends: | Observable |
[{
id: 1,
text: 'A leaf Node',
@@ -42,528 +22,241 @@ 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.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 | -Defined By | -|
---|---|---|
- |
-
- baseAttrs : Object
-
- (optional) An object containing attributes to be added to all nodes created by this loader. If the attributes sent by...
-
- (optional) An object containing attributes to be added to all nodes created by this loader. If the attributes sent by the server have an attribute in this object, they take priority.
- |
- TreeLoader | -
- |
-
- baseParams : Object
- (optional) An object containing properties which specify HTTP parameters to be passed to each request for child nodes.
- |
- TreeLoader | -
- |
-
- clearOnLoad : Boolean
- (optional) Default to true. Remove previously existing child nodes before loading.
- |
- TreeLoader | -
- |
-
- dataUrl : String
-
- The URL from which to request a Json string which specifies an array of node definition objects representing the chil...
-
- The URL from which to request a Json string which specifies an array of node definition objects representing the child nodes to be loaded.
- |
- TreeLoader | -
- |
-
- listeners : Object
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. Th...
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
- |
- Observable | -
- |
-
- 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 | -
- |
-
- uiProviders : Object
-
- (optional) An object containing properties which specify custom Ext.tree.TreeNodeUI implementations. If the optional ...
-
- (optional) An object containing properties which specify custom Ext.tree.TreeNodeUI implementations. If the optional uiProvider attribute of a returned child node is a string rather than a reference to a TreeNodeUI implementation, then that string value is used as a property name in the uiProviders object.
- |
- TreeLoader | -
- |
-
- url : String
- Equivalent to dataUrl.
- |
- TreeLoader | -
Method | -Defined By | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
-
- TreeLoader( Object config )
-
- Creates a new Treeloader.
-
- Creates a new Treeloader.
-
- Parameters:
-
-
|
- TreeLoader | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
-
- addEvents( Object object ) : void
-
- Used to define events on this Observable
-
- Used to define events on this Observable
-
- Parameters:
-
-
|
- Observable | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
-
- addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void
- Appends an event handler to this component
-
- Appends an event handler to this component
- Parameters:
-
\ No newline at end of file
+a node (or append new children if the clearOnLoad option is false.)
Parameters:
| TreeLoader | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
on( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
+ voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purgeListeners()
+ :
+ void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
relayEvents( Object o , Array events )
+ :
+ voidRelays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeListener( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resumeEvents()
+ :
+ void Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+event... Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
suspendEvents( Boolean queueSuspended )
+ :
+ voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
un( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable |
Event | Defined By | |
---|---|---|
beforeload :
+ ( Object This , Object node , Object callback )
+ Fires before a network request is made to retrieve the Json text which specifies a node's children. Fires before a network request is made to retrieve the Json text which specifies a node's children. Listeners will be called with the following arguments:
| TreeLoader | |
load :
+ ( Object This , Object node , Object response )
+ Fires when the node has been successfuly loaded. Fires when the node has been successfuly loaded. Listeners will be called with the following arguments:
| TreeLoader | |
loadexception :
+ ( Object This , Object node , Object response )
+ Fires if the network request failed. Fires if the network request failed. Listeners will be called with the following arguments:
| TreeLoader |