0
我一直試圖兩天添加列表或NestedList我在煎茶觸摸選項卡之一,我不能這樣做:(我的標籤代碼:添加列表煎茶觸摸屏
Darsnameh.views.Coursecard = Ext.extend(Ext.Panel,{
title: "Courses",
iconCls: "bookmarks",
style:"background:red",
dockedItems:[{
xtype:'toolbar',
title:'Courses'
}]
})
Ext.reg('coursecard',Darsnameh.views.Coursecard);
和我的代碼列表
Ext.regModel('Contact',{
fields:['firstName','lastName']
});
Darsnameh.CoursesStore = new Ext.data.Store({
model: 'Contact',
data:[
{firstName:'Domino', lastName:'Derval' },
{firstName:'Domino2', lastName:'Derval2' },
{firstName:'Domino3', lastName:'Derval3' },
{firstName:'Domino4', lastName:'Derval4' },
{firstName:'Domino5', lastName:'Derval5' },
{firstName:'Domino6', lastName:'Derval6' }
]
});
Darsnameh.coursesList = new Ext.List({
id:'courseslist',
store: Darsnameh.CoursesStore,
itemTpl:'<div class="contact">{firstName}</div>'
});
當我添加類似的東西
items:[Darsnameh.coursesList]
應用程序頁面是空白,什麼也看不見了,我應該怎麼廣告d要在列表中擁有列表還是嵌套列表?
我沒有問題添加工具欄,但我不能在我的面板中添加任何列表或嵌套列表 – Siavash 2011-12-31 16:46:43