3
NestedList에 JSON 데이터를로드하려고합니다. 나는 다음과 같은Sencha Touch 2 : '지정한 상점을 찾을 수 없습니다.'
Ext.define('VisitTCMIndy.view.Explore', {
extend: 'Ext.Container',
requires: [
'Ext.data.TreeStore',
'Ext.dataview.NestedList',
'VisitTCMIndy.store.Exhibits',
],
xtype: 'explorecard',
config: {
iconCls: 'compass1',
title: 'Explore',
layout: 'fit',
items: [
{
xtype: 'titlebar',
docked: 'top',
title: 'Explore'
},
{
xtype: 'nestedlist',
fullscreen: true,
store: 'VisitTCMIndy.store.Exhibits',
detailCard: {
html: 'Explore Details'
},
listeners: {
leafitemtap: function(nestedList, list, index, target, record){
var detailCard = nestedList.getDetailCard();
detailCard.setHtml('Exhibit Title: '+ record.get('title'));
}
}
}
]
}
});
내가 얻을 다음
Ext.define('VisitTCMIndy.store.Exhibits',{
requires: ['VisitTCMIndy.model.Exhibit', 'Ext.data.proxy.JsonP'],
extend: 'Ext.data.TreeStore',
config: {
model: 'VisitTCMIndy.model.Exhibit',
proxy: {
type: 'jsonp',
url: 'http://www.example.com/explore.php',
reader: {
type: 'json',
rootPropery: 'children'
}
}
}
});
내가 /app/view/Explore.js에서 다음보기에서 참조 /app/store/Exhibits.js
에서 다음 저장소에 저장 파일이 경고 및 나는 페이지로 이동 빈리스트 :,[Ext.dataview.NestedList #이 applyStore] 지정된 스토어를 찾을 수 없습니다 [WARN]
나는 인생을 앞두고 내가 뭘 잘못하고 있는지 알 수 없다.