Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / grid / property-grid.js
index 7c1f682..19544ed 100644 (file)
@@ -1,50 +1,50 @@
 /*!
- * Ext JS Library 3.1.1
- * Copyright(c) 2006-2010 Ext JS, LLC
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
-Ext.onReady(function(){\r
-    \r
-    var propsGrid = new Ext.grid.PropertyGrid({\r
-        renderTo: 'prop-grid',\r
-        width: 300,\r
-        autoHeight: true,\r
-        propertyNames: {\r
-            tested: 'QA',\r
-            borderWidth: 'Border Width'\r
-        },\r
-        source: {\r
-            '(name)': 'Properties Grid',\r
-            grouping: false,\r
-            autoFitColumns: true,\r
-            productionQuality: false,\r
-            created: new Date(Date.parse('10/15/2006')),\r
-            tested: false,\r
-            version: 0.01,\r
-            borderWidth: 1\r
-        },\r
-        viewConfig : {\r
-            forceFit: true,\r
-            scrollOffset: 2 // the grid will never have scrollbars\r
-        }\r
-    });\r
-\r
-    // simulate updating the grid data via a button click\r
-    new Ext.Button({\r
-        renderTo: 'button-container',\r
-        text: 'Update source',\r
-        handler: function(){\r
-            propsGrid.setSource({\r
-                '(name)': 'Property Grid',\r
-                grouping: false,\r
-                autoFitColumns: true,\r
-                productionQuality: true,\r
-                created: new Date(),\r
-                tested: false,\r
-                version: 0.8,\r
-                borderWidth: 2\r
-            });\r
-        }\r
-    });\r
+Ext.onReady(function(){
+    
+    var propsGrid = new Ext.grid.PropertyGrid({
+        renderTo: 'prop-grid',
+        width: 300,
+        autoHeight: true,
+        propertyNames: {
+            tested: 'QA',
+            borderWidth: 'Border Width'
+        },
+        source: {
+            '(name)': 'Properties Grid',
+            grouping: false,
+            autoFitColumns: true,
+            productionQuality: false,
+            created: new Date(Date.parse('10/15/2006')),
+            tested: false,
+            version: 0.01,
+            borderWidth: 1
+        },
+        viewConfig : {
+            forceFit: true,
+            scrollOffset: 2 // the grid will never have scrollbars
+        }
+    });
+
+    // simulate updating the grid data via a button click
+    new Ext.Button({
+        renderTo: 'button-container',
+        text: 'Update source',
+        handler: function(){
+            propsGrid.setSource({
+                '(name)': 'Property Grid',
+                grouping: false,
+                autoFitColumns: true,
+                productionQuality: true,
+                created: new Date(),
+                tested: false,
+                version: 0.8,
+                borderWidth: 2
+            });
+        }
+    });
 });
\ No newline at end of file