examples/form/dynamic.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 11 Aug 2010 06:20:47 +0000 (14:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 11 Aug 2010 06:20:47 +0000 (14:20 +0800)
examples/form/dynamic.js

index 0696f40..2671cf0 100644 (file)
@@ -320,30 +320,30 @@ Roo.onReady(function(){
                 value : 'example text'
             } ,
             {
-            xtype: 'ComboBox',
-            xns : Roo.form,
-            fieldLabel: 'State',
-            hiddenName:'state',
-            store: {
-                xtype: 'SimpleStore',
-                xns : Roo.data,
-                fields: ['abbr', 'state'],
-                data : Roo.exampledata.states // from states.js
-            },
-            displayField:'state',
-            typeAhead: true,
-            mode: 'local',
-            triggerAction: 'all',
-            emptyText:'Select a state...',
-            selectOnFocus:true,
-            width:190,
-            listeners : {
-                add : function()
-                {
-                    Roo.messageBox.alert("Alert", "Add Pressed");
+                xtype: 'ComboBox',
+                xns : Roo.form,
+                fieldLabel: 'State',
+                hiddenName:'state',
+                store: {
+                    xtype: 'SimpleStore',
+                    xns : Roo.data,
+                    fields: ['abbr', 'state'],
+                    data : Roo.exampledata.states // from states.js
+                },
+                displayField:'state',
+                typeAhead: true,
+                mode: 'local',
+                triggerAction: 'all',
+                emptyText:'Select a state...',
+                selectOnFocus:true,
+                width:190,
+                listeners : {
+                    add : function()
+                    {
+                        Roo.messageBox.alert("Alert", "Add Pressed");
+                    }
                 }
-            }
-        }),
+            },
         
         ]
     });