I have this JSON store but it`s not coded correctly. What is the correct syntax for it?
Ext.define('MA.store.Language', {
extend : 'Ext.data.Store',
fields : [ {
name : 'id'
}, {
name : 'name'
} ],
data : [ {
"aa" : "Afar",
"ab" : "Abkhazian",
"ace" : "Achinese",
"ach" : "Acoli",
"ada" : "Adangme",
"ady" : "Adyghe",
"ae" : "Avestan",
"af" : "Afrikaans",
"afa" : "Afro-Asiatic Language",
"afh" : "Afrihili",
"ain" : "Ainu",
"ak" : "Akan"
} ]
});
I need this store for a combobox like this but it wont work:
{
xtype : 'combo',
name : 'language',
fieldLabel : 'Language',
store : 'Language',
queryMode : 'local',
displayField : 'name',
valueField : 'id',
typeAhead : true,
forceSelection : true
}