0
嗨我做了一个产品名称和价格列表是一个面板的项目面板有一个dockeditem这是一个工具栏。我想要工具栏内的价格总和,以便人们可以看到总价格。总价值Sencha Touch
我的代码:
new Ext.Panel({
layout: 'fit',
flex: 1,
items: [
new Ext.List({
layout: 'fit',
title: 'Winkelwagen',
store: NestedListDemo.Winkelwagen_Store,
flex: 1,
itemTpl : '{title} €{prijs}'
})],
dockedItems: [{
xtype: 'toolbar',
dock: 'bottom',
title: 'Totaal'
}]
})
我的店:
NestedListDemo.Winkelwagen_Store = new Ext.data.JsonStore({
model: 'ListProductItem',
storeId: 'WinkelwagenStore',
data: [
],
autoLoad: true
});
谁能告诉我该怎么做,因为我不知道