[Commits] r2788 - sandbox/redlining/ux/FeatureEditing/ux/widgets

commits at geoext.org commits at geoext.org
Tue Jul 26 14:16:31 CEST 2011


Author: pgiraud
Date: 2011-07-26 14:16:31 +0200 (Tue, 26 Jul 2011)
New Revision: 2788

Modified:
   sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
Log:
Allow user to use its own FeaturePanel class

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2011-07-26 11:24:26 UTC (rev 2787)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2011-07-26 12:16:31 UTC (rev 2788)
@@ -87,6 +87,13 @@
      */
     featurePanel: null,
 
+    /** api: config[featurePanelClass]
+     * ``Class``
+     * Name of the class to create an instance with. Defaults to
+     * GeoExt.ux.form.FeaturePanel.
+     */
+    featurePanelClass: null,
+
     /** api: config[popup]
      *  ``GeoExt.Popup``
      *  A reference to the Popup object created
@@ -686,7 +693,8 @@
             options['plugins'] = [new GeoExt.ux.ExportFeature(), new GeoExt.ux.CloseFeatureDialog()];
         }
 
-        this.featurePanel = new GeoExt.ux.form.FeaturePanel(options);
+        clazz = this.featurePanelClass || GeoExt.ux.form.FeaturePanel; 
+        this.featurePanel = new clazz(options);
 
         // display the popup
         popupOptions = {



More information about the Commits mailing list