load store para List usando json
Aqui meu código para lista usando Sencha touch2, eu tenho um serviço de descanso e eu preciso ser capaz de carregar minha loja para a minha visão de lista.
var tab= Ext.create('Ext.List', {
width: 320,
height: 290,
store: {
fields: ['ext_xtype','imgURL','arimg'],
data: [{
ext_xtype: 'Harry Potter 4',
imgURL:'bo.png',
arimg:'arrow.png'
},{
ext_xtype: 'Iphone5 64gb',
imgURL:'mo.png',
arimg:'arrow.png'
},{
ext_xtype: 'Hill Figure',
imgURL:'wa.png',
arimg:'arrow.png'
}]
},
itemTpl: '<img src="{imgURL}" width="35" heigh="35"></img><span>   {ext_xtype}<img src="{arimg}" width="25" height="25" align="right"></img>'
});
Eu tentei o seguinte linkSencha com procura por procuração mas não poderia ajudar a prosseguir.Aqui o método JSON restante.
Method: GET
URL: http://117.218.59.157:8080/WishList/ShowItems/userID=?
Como devo importar o json para carregar em LIST
#EDITAR
var tab= Ext.create('Ext.List', {
width: 320,
height: 290,
//ui: 'round',
store: {
proxy: {
type: 'ajax',
url: 'http://117.218.59.157:8080/WishList/ShowItems/userID=1',
reader: {
type: 'json'
}
}
fields: [
{ imgURL: 'itemID' },
{ ext_xtype: 'itemName'},
{ arimg: 'itemImage'},
],
},
itemTpl: '<img src="{imgURL}" width="35" heigh="35"></img><span>   {ext_xtype}<img src="{arimg}" width="25" height="25" align="right"></img>'
});