examples/bootstrap/dashboard1.bjs.MMQYLX
authorAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 11:47:20 +0000 (19:47 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 11:47:20 +0000 (19:47 +0800)
examples/bootstrap/dashboard1.bjs
examples/bootstrap/dashboard1.js.PIWYLX
examples/bootstrap/dashboard1.js
examples/bootstrap/dashboard1.bjs.M2ZYLX
examples/bootstrap/dashboard1.js.W85YLX

examples/bootstrap/dashboard1.bjs
examples/bootstrap/dashboard1.js

index 742f850..454495d 100644 (file)
                                                                                             "* prop" : "store"
                                                                                         }
                                                                                     ]
+                                                                                },
+                                                                                {
+                                                                                    "String mode" : "local",
+                                                                                    "String name" : "combotest",
+                                                                                    "String valueField" : "item",
+                                                                                    "xtype" : "ComboBox",
+                                                                                    "String triggerAction" : "all",
+                                                                                    "Boolean editable" : false,
+                                                                                    "String fieldLabel" : "ComboBox",
+                                                                                    "$ xns" : "Roo.bootstrap",
+                                                                                    "String/Roo.Template tpl" : "<li class=\"select2-result\"><b>{item}</b></div>",
+                                                                                    "String displayField" : "item",
+                                                                                    "items" : [
+                                                                                        {
+                                                                                            "$ Array fields" : "[ 'item' ]",
+                                                                                            "$ Array data" : "[ [ 'option a'] ,[ 'option b'] ]",
+                                                                                            "xtype" : "SimpleStore",
+                                                                                            "$ xns" : "Roo.data",
+                                                                                            "* prop" : "store"
+                                                                                        }
+                                                                                    ]
                                                                                 }
                                                                             ]
                                                                         }
index f7c89ab..f006ad5 100644 (file)
@@ -632,6 +632,28 @@ dashboard1 = new Roo.XComponent({
 
                                                                                     ]
 
+                                                                                },
+                                                                               {
+                                                                                    store : {
+                                                                                        fields : [ 'item' ],
+                                                                                        data : [ [ 'option a'] ,[ 'option b'] ],
+                                                                                        xtype : 'SimpleStore',
+                                                                                        xns : Roo.data
+                                                                                    },
+                                                                                    mode : 'local',
+                                                                                    name : 'combotest',
+                                                                                    valueField : 'item',
+                                                                                    xtype : 'ComboBox',
+                                                                                    triggerAction : 'all',
+                                                                                    editable : false,
+                                                                                    fieldLabel : 'ComboBox',
+                                                                                    xns : Roo.bootstrap,
+                                                                                    tpl : '<li class=\"select2-result\"><b>{item}</b></div>',
+                                                                                    displayField : 'item',
+                                                                                    items : [
+
+                                                                                    ]
+
                                                                                 }
                                                                             ]