I am struggling with a problem in ExtJS 4...
I have an array like this:
[ 2010, 2011,2012 ]
And I would like to fill my bobox with these values. I can set the first value with bobox.setValue() but I want to set several values. This is my bobox:
var bobox = Ext.ComponentQuery.query('bobox[name=myBox]')[0];
Does someone know how I can populate the bobox with the array?
I am struggling with a problem in ExtJS 4...
I have an array like this:
[ 2010, 2011,2012 ]
And I would like to fill my bobox with these values. I can set the first value with bobox.setValue() but I want to set several values. This is my bobox:
var bobox = Ext.ComponentQuery.query('bobox[name=myBox]')[0];
Does someone know how I can populate the bobox with the array?
Share Improve this question edited Feb 1, 2014 at 18:34 BenMorel 36.7k52 gold badges206 silver badges337 bronze badges asked Oct 15, 2012 at 12:24 NicoNico 1,0811 gold badge25 silver badges39 bronze badges1 Answer
Reset to default 4See this
Ext.create('Ext.form.field.ComboBox', { store: ['Red', 'Yellow', 'Green', 'Brown', 'Blue', 'Pink', 'Black'] });
Ref: http://skirtlesden./articles/extjs-boboxes-part-1
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745206152a4616602.html
评论列表(0条)