nowhere
29 Jul 2007, 10:55 PM
I want to create a combobox using the example code from the documentation :
// simple array store
var store = new Ext.data.SimpleStore({
fields: ['abbr', 'state'],
data : exampleData // Format data that i try to find
});
var combo = new Ext.form.ComboBox({
store: store,
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true
});
combo.applyTo('local-states');
Is there anyone that know the format data for "exampleData" variable or the data format that should store in the config data for Ext.data.SimpleStore.
Then why the trigger image is closed by some image that requested from http://www.extjs.com/s.gif, so in my local computer the combobox trigger is had a bad look.
Thanks.
// simple array store
var store = new Ext.data.SimpleStore({
fields: ['abbr', 'state'],
data : exampleData // Format data that i try to find
});
var combo = new Ext.form.ComboBox({
store: store,
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true
});
combo.applyTo('local-states');
Is there anyone that know the format data for "exampleData" variable or the data format that should store in the config data for Ext.data.SimpleStore.
Then why the trigger image is closed by some image that requested from http://www.extjs.com/s.gif, so in my local computer the combobox trigger is had a bad look.
Thanks.