X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/output/Ext.tree.TreeLoader.html diff --git a/docs/output/Ext.tree.TreeLoader.html b/docs/output/Ext.tree.TreeLoader.html index 8423993d..789db2b3 100644 --- a/docs/output/Ext.tree.TreeLoader.html +++ b/docs/output/Ext.tree.TreeLoader.html @@ -1,4 +1,4 @@ -
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 +
Observable
  TreeLoader

Class Ext.tree.TreeLoader

Package:Ext.tree
Defined In:TreeLoader.js
Class:TreeLoader
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.:
[{
@@ -88,7 +88,8 @@ Ext.DomObserver = Ext.extend(Object, {
     typeAhead: true,
     mode: 'local',
     triggerAction: 'all'
-});

Observable paramOrder : Array/String
Defaults to undefined. Only used when using directFn. +});

Observable nodeParameter : String
The name of the parameter sent to the server which contains +the identifier of the node. Defaults to 'node'.
TreeLoader paramOrder : Array/String
Defaults to undefined. Only used when using directFn. A list of params to be executed server side. Specify the par...
Defaults to undefined. Only used when using directFn. A list of params to be executed @@ -185,7 +186,7 @@ Example:
new Ext.tree.TreePanel({
         }
     }),
     ...
-});
Parameters:
  • {Object} : attr
    The attributes from which to create the new node.
Returns:
  • void
TreeLoader enableBubbleObject events ) +});
Parameters:
  • {Object} : attr
    The attributes from which to create the new node.
Returns:
  • void
TreeLoader enableBubbleString/Array events ) : void
Enables events fired by this Observable to bubble up an owner hierarchy by calling this.getBubbleTarget() if present...

Enables events fired by this Observable to bubble up an owner hierarchy by calling @@ -194,13 +195,13 @@ this.getBubbleTarget() if present...

Enables events fi implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to access the required target more quickly.

Example:

Ext.override(Ext.form.Field, {
-//  Add functionality to Field's initComponent to enable the change event to bubble

-    initComponent: Ext.form.Field.prototype.initComponent.createSequence(function() {
-        this.enableBubble('change');
+    //  Add functionality to Field's initComponent to enable the change event to bubble

+    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+        this.enableBubble('change');
     }),
 
-//  We know that we want Field's events to bubble directly to the FormPanel.

-    getBubbleTarget: function() {
+    //  We know that we want Field's events to bubble directly to the FormPanel.

+    getBubbleTarget : function() {
         if (!this.formPanel) {
             this.formPanel = this.findParentByType('form');
         }
@@ -215,11 +216,11 @@ access the required target more quickly.

}], listeners: { change: function() { -// Title goes red if form has been modified. - myForm.header.setStyle("color", "red"); + // Title goes red if form has been modified. + myForm.header.setStyle('color', 'red'); } } -});
Parameters:
  • events : Object
    The event name to bubble, or an Array of event names.
Returns:
  • void
Observable fireEventString eventNameObject... args ) +});
Parameters:Returns:
Observable fireEventString eventNameObject... args ) : Boolean
Fires the specified event with the passed parameters (minus the event name). An event may be set to bubble up an Obse...

Fires the specified event with the passed parameters (minus the event name).

@@ -231,7 +232,9 @@ by calling
Load an Ext.tree.TreeNode from the URL specified in the constructor. This is called automatically when a node is exp...
Load an Ext.tree.TreeNode from the URL specified in the constructor. This is called automatically when a node is expanded, but may be used to reload -a node (or append new children if the clearOnLoad option is false.)
Parameters:
  • node : Ext.tree.TreeNode
  • callback : Function
  • scope : (Object)
Returns:
  • void
TreeLoader onString eventNameFunction handler[Object scope][Object options] ) +a node (or append new children if the clearOnLoad option is false.)
Parameters:Returns:
TreeLoader onString eventNameFunction handler[Object scope][Object options] ) : void
Appends an event handler to this object (shorthand for addListener.)
Appends an event handler to this object (shorthand for addListener.)
Parameters:
  • eventName : String
    The type of event to listen for
  • handler : Function
    The method the event invokes
  • scope : Object
    (optional) The scope (this reference) in which the handler function is executed. If omitted, defaults to the object which fired the event.
  • options : Object
    (optional) An object containing handler configuration.
Returns:
  • void
Observable purgeListeners()