[Commits] r2350 - core/trunk/geoext/lib/GeoExt/widgets/tree
commits at geoext.org
commits at geoext.org
Wed Sep 15 09:42:19 CEST 2010
Author: ahocevar
Date: 2010-09-15 09:42:19 +0200 (Wed, 15 Sep 2010)
New Revision: 2350
Modified:
core/trunk/geoext/lib/GeoExt/widgets/tree/LayerLoader.js
Log:
Since our LayerLoader inherits from Ext.Util.Observable (and not Ext.tree.TreeLoader), we have to document the config options and methods that we thought were covered by the superclass docs. Non-functional change.
Modified: core/trunk/geoext/lib/GeoExt/widgets/tree/LayerLoader.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/tree/LayerLoader.js 2010-09-14 20:14:41 UTC (rev 2349)
+++ core/trunk/geoext/lib/GeoExt/widgets/tree/LayerLoader.js 2010-09-15 07:42:19 UTC (rev 2350)
@@ -79,6 +79,12 @@
return record.getLayer().displayInLayerSwitcher == true;
},
+ /** api: config[baseAttrs]
+ * An object containing attributes to be added to all nodes created by
+ * this loader.
+ */
+ baseAttrs: null,
+
/** api: config[uiProviders]
* ``Object``
* An optional object containing properties which specify custom
@@ -292,10 +298,13 @@
}
},
- /** private: method[createNode]
+ /** api: method[createNode]
* :param attr: ``Object`` attributes for the new node
+ *
+ * Override this function for custom TreeNode node implementation, or to
+ * modify the attributes at creation time.
*/
- createNode: function(attr){
+ createNode: function(attr) {
if(this.baseAttrs){
Ext.apply(attr, this.baseAttrs);
}
More information about the Commits
mailing list