examples/form/nestedcombo.js
[roojs1] / examples / form / nestedcombo.js
index ec7b2ce..d3bdbf4 100644 (file)
@@ -13,7 +13,11 @@ Roo.onReady(function(){
       sampledata  = [
         ['A', 'A states', [
             ['AK', 'Alaska'],
-            ['AZ', 'Arizona'],
+            ['AZ', 'Arizona', [
+                ['AK', 'Alaska'],
+                ['AZ', 'Arizona'],
+                ['AR', 'Arkansas']
+            ]],
             ['AR', 'Arkansas']
                            
         ]],
@@ -31,8 +35,13 @@ Roo.onReady(function(){
             ['ID', 'Idaho'],
             ['IL', 'Illinois'],
             ['IN', 'Indiana'],
-            ['IA', 'Iowa']
-        ]]
+            ['IA', 'Iowa'],
+            ['IDA', 'Idaho'],
+            ['ILA', 'Illinois'],
+            ['INA', 'Indiana'],
+            ['IAA', 'Iowa']
+        ]],
+        ['E', 'Empty states', []],
     ];
     /*
      * ================  Form 2  =======================
@@ -63,7 +72,7 @@ Roo.onReady(function(){
                     data : sampledata// from states.js
                    
                 },
-                listWidth: 500,
+                listWidth: 400,
                 typeAhead: true,
                 mode: 'local',
                 triggerAction: 'all',