I define a combobox like this
{
xtype: 'combobox',
emptyText: 'Functions'
store: [ 'none' ]
}
then, on some event the store should load new data, so I get the store from the combobox and try this:
oFunctionStore.loadData( ['dothis', 'dothat', 'dosomething' ] );
but after this, the combobox has a dropdown without any visible content, just tiny blank lines.
The combobox implicitly creates an
Ext.data.ArrayStore, which will convert arrays into models.The
dataparameter passed toloadDatais expected to be either an array of models, or anarray of objects than can be converted to models (in this case, an
array of arrays).
[ [ 'none' ] ]behind the scenes.See an example here