You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_tree_TreeLoader({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.util.Observable","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><strong>Ext.tree.TreeLoader</strong></div></div><h4>Files</h4><div class='dependency'><a href='source/TreeLoader.html#Ext-tree-TreeLoader' target='_blank'>TreeLoader.js</a></div></pre><div class='doc-contents'><p>A TreeLoader provides for lazy loading of an <a href=\"#!/api/Ext.tree.TreeNode\" rel=\"Ext.tree.TreeNode\" class=\"docClass\">Ext.tree.TreeNode</a>'s child\nnodes from a specified URL. The response must be a JavaScript Array definition\nwhose elements are node definition objects. e.g.:</p>\n\n<pre><code> [{\n id: 1,\n text: 'A leaf Node',\n leaf: true\n },{\n id: 2,\n text: 'A folder Node',\n children: [{\n id: 3,\n text: 'A child Node',\n leaf: true\n }]\n }]\n</code></pre>\n\n\n<br><br>\n\n\n<p>A server request is sent, and child nodes are loaded only when a node is expanded.\nThe loading node's id is passed to the server under the parameter name \"node\" to\nenable the server to produce the correct child nodes.</p>\n\n<br><br>\n\n\n<p>To pass extra parameters, an event handler may be attached to the \"beforeload\"\nevent, and the parameters specified in the TreeLoader's baseParams property:</p>\n\n<pre><code> myTreeLoader.on(\"beforeload\", function(treeLoader, node) {\n this.baseParams.category = node.attributes.category;\n }, this);\n</code></pre>\n\n\n<p>This would pass an HTTP parameter called \"category\" to the server containing\nthe value of the Node's \"category\" attribute.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-baseAttrs' class='member first-child not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeLoader'>Ext.tree.TreeLoader</span><br/><a href='source/TreeLoader.html#Ext-tree-TreeLoader-cfg-baseAttrs' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeLoader-cfg-baseAttrs' class='name expandable'>baseAttrs</a><span> : Object</span></div><div class='description'><div class='short'>(optional) An object containing attributes to be added to all nodes\ncreated by this loader. ...</div><div class='long'><p>(optional) An object containing attributes to be added to all nodes\ncreated by this loader. If the attributes sent by the server have an attribute in this object,\nthey take priority.</p>\n</div></div></div><div id='cfg-baseParams' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeLoader'>Ext.tree.TreeLoader</span><br/><a href='source/TreeLoader.html#Ext-tree-TreeLoader-cfg-baseParams' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeLoader-cfg-baseParams' class='name not-expandable'>baseParams</a><span> : Object</span></div><div class='description'><div class='short'><p>(optional) An object containing properties which\nspecify HTTP parameters to be passed to each request for child nodes.</p>\n</div><div class='long'><p>(optional) An object containing properties which\nspecify HTTP parameters to be passed to each request for child nodes.</p>\n</div></div></div><div id='cfg-clearOnLoad' class='member not-inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeLoader'>Ext.tree.TreeLoader</span><br/><a href='source/TreeLoader.html#Ext-tree-TreeLoader-cfg-clearOnLoad' target='_blank'
|