Login Register

different ways to provide options to dijit.form.ComboBox

Hi,

I would like to know different approaches that can be used to provide options to dijit.form.ComboBox.
I know one way that is,

var options = new dojo.data.ItemFileWriteStore({data: {identifier: 'name', items:[]}});
options.newItem({name: 'foo'});
options.newItem({name: 'bar'});

Any help will be aprreciated.