From: Alan Knowles Date: Thu, 11 Sep 2014 11:47:20 +0000 (+0800) Subject: examples/bootstrap/dashboard1.bjs.MMQYLX X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5751116623dd97a174a719ffb93afebe2258fcda;p=roojs1 examples/bootstrap/dashboard1.bjs.MMQYLX examples/bootstrap/dashboard1.bjs examples/bootstrap/dashboard1.js.PIWYLX examples/bootstrap/dashboard1.js examples/bootstrap/dashboard1.bjs.M2ZYLX examples/bootstrap/dashboard1.js.W85YLX --- diff --git a/examples/bootstrap/dashboard1.bjs b/examples/bootstrap/dashboard1.bjs index 742f850a23..454495d891 100644 --- a/examples/bootstrap/dashboard1.bjs +++ b/examples/bootstrap/dashboard1.bjs @@ -590,6 +590,27 @@ "* 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" : "
  • {item}", + "String displayField" : "item", + "items" : [ + { + "$ Array fields" : "[ 'item' ]", + "$ Array data" : "[ [ 'option a'] ,[ 'option b'] ]", + "xtype" : "SimpleStore", + "$ xns" : "Roo.data", + "* prop" : "store" + } + ] } ] } diff --git a/examples/bootstrap/dashboard1.js b/examples/bootstrap/dashboard1.js index f7c89abb59..f006ad50da 100644 --- a/examples/bootstrap/dashboard1.js +++ b/examples/bootstrap/dashboard1.js @@ -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 : '
  • {item}', + displayField : 'item', + items : [ + + ] + } ]