を実行することはできません。なぜ私の "属性"プロパティを取得できないのですか?煎茶タッチNestedlistは、私は、私はそれを実行したとき、私は私がgetDetailCardのために置くとして、私は多くの類似のコードを見てきました</p> <blockquote> <p>Uncaught TypeError: Cannot read property 'attributes' of undefined</p> </blockquote> <p>のようなエラーが発生しました、煎茶Touch2については、以下のコードを持っているgetDetailCard
Ext.define('MyApp.view.MainTabPanel', {
extend: 'Ext.tab.Panel',
config: {
tabBar: {
docked: 'top'
},
items: [
{
xtype: 'container',
title: 'Documents'
},
{
xtype: 'nestedlist',
itemId: 'newslist',
ui: 'dark',
displayField: 'title',
store: 'NewsStoreXML',
title: 'News',
getDetailCard: function(item, parent) {
var itemData = item.attributes.record.data,
parentData = parent.attributes.record.data,
detailCard = new Ext.Panel({
scroll: 'vertical',
styleHtmlContent: true,
tpl: ["<h2>{text}</h2>","{content}"]
});
detailCard.update(itemData);
this.backButton.setText(parentData.text);
return detailCard;
}
},
{
xtype: 'container',
title: 'Calendar'
}
]
},
requires: [
'Ext.dataview.NestedList',
'Ext.TitleBar'
]
});