[Commits] r2626 - core/trunk/geoext/lib/GeoExt/plugins
commits at geoext.org
commits at geoext.org
Mon Mar 21 09:08:35 CET 2011
Author: elemoine
Date: 2011-03-21 09:08:35 +0100 (Mon, 21 Mar 2011)
New Revision: 2626
Modified:
core/trunk/geoext/lib/GeoExt/plugins/TreeNodeActions.js
Log:
corrections in the TreeNodeActions doc strings, no functional change
Modified: core/trunk/geoext/lib/GeoExt/plugins/TreeNodeActions.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/plugins/TreeNodeActions.js 2011-03-21 07:55:19 UTC (rev 2625)
+++ core/trunk/geoext/lib/GeoExt/plugins/TreeNodeActions.js 2011-03-21 08:08:35 UTC (rev 2626)
@@ -43,56 +43,55 @@
*
* .. code-block:: javascript
*
+ * var uiClass = GeoExt.examples.LayerNodeUI = Ext.extend(
+ * GeoExt.tree.LayerNodeUI,
+ * new GeoExt.tree.TreeNodeUIEventMixin()
+ * );
*
- * var uiClass = GeoExt.examples.LayerNodeUI = Ext.extend(
- * GeoExt.tree.LayerNodeUI,
- * new GeoExt.tree.TreeNodeUIEventMixin()
- * );
- *
- * // this function takes action based on the "action"
- * // parameter, it is used as a listener to layer
- * // nodes' "action" events
- * function onAction(node, action, evt) {
- * var layer = node.layer;
- * switch(action) {
- * case "delete":
- * layer.destroy();
- * break;
- * }
- * };
- * var tree = new Ext.tree.TreePanel({
- * region: "west",
- * width: 250,
- * title: "Layer Tree",
- * loader: {
- * applyLoader: false,
- * uiProviders: {
- * "ui": GeoExt.examples.LayerNodeUI
+ * // this function takes action based on the "action"
+ * // parameter, it is used as a listener to layer
+ * // nodes' "action" events
+ * function onAction(node, action, evt) {
+ * var layer = node.layer;
+ * switch(action) {
+ * case "delete":
+ * layer.destroy();
+ * break;
* }
- * },
- * // apply the tree node actions plugin to layer nodes
- * plugins: [{
- * ptype: "gx_treenodeactions",
- * listeners: {
- * action: onAction
- * }
- * }],
- * root: {
- * nodeType: "gx_layercontainer",
+ * };
+ *
+ * var tree = new Ext.tree.TreePanel({
+ * region: "west",
+ * width: 250,
+ * title: "Layer Tree",
* loader: {
- * baseAttrs: {
- * radioGroup: "radiogroup",
- * uiProvider: "ui",
- * actions: [{
- * action: "delete",
- * qtip: "delete"
- * }]
+ * applyLoader: false,
+ * uiProviders: {
+ * "ui": GeoExt.examples.LayerNodeUI
* }
- * }
- * },
- * rootVisible: false
- * });
- *
+ * },
+ * // apply the tree node actions plugin to layer nodes
+ * plugins: [{
+ * ptype: "gx_treenodeactions",
+ * listeners: {
+ * action: onAction
+ * }
+ * }],
+ * root: {
+ * nodeType: "gx_layercontainer",
+ * loader: {
+ * baseAttrs: {
+ * radioGroup: "radiogroup",
+ * uiProvider: "ui",
+ * actions: [{
+ * action: "delete",
+ * qtip: "delete"
+ * }]
+ * }
+ * }
+ * },
+ * rootVisible: false
+ * });
*/
GeoExt.plugins.TreeNodeActions = Ext.extend(Ext.util.Observable, {
@@ -209,4 +208,5 @@
}
});
+/** api: ptype = gx_treenodeactions */
Ext.preg("gx_treenodeactions", GeoExt.plugins.TreeNodeActions);
More information about the Commits
mailing list