examples/form/dynamic.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 05:42:17 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 05:42:17 +0000 (13:42 +0800)
examples/form/dynamic.js

index a8b37ce..5745682 100644 (file)
@@ -83,8 +83,26 @@ Roo.onReady(function(){
                         name: 'country',
                         hiddenName: 'countryNames',
                         width: 500,
-                        
-                        
+                        combo : {
+                            
+                            
+                            xtype : 'ComboBox',
+                            xns : Roo.form,
+                            store: {
+                                xtype : 'SimpleStore',
+                                xns: Roo.data,
+                                fields: ['abbr', 'state'],
+                                data : Roo.exampledata.states // from states.js    
+                            },
+                            editable : false,
+                            displayField:'state',
+                            typeAhead: false,
+                            mode: 'local',
+                            triggerAction: 'all',
+                            emptyText:'Select a state...',
+                            selectOnFocus:true,
+                            resizable:true
+                        }
                         
                         
                     }