Sencha は初めてですが、アイテムのリストを作成することができました。リスト項目をクリックすると、情報を含む詳細ビューが表示されます。どうすればいいですか?リスナーを追加していくつか試してみましたが、何も機能していないようです。
私のリスト
Ext.define("GS.view.LoggedInView", {
extend: "Ext.Container",
config: {
id: 'acution-list',
layout: 'vbox',
fullscreen: true,
items: [{
xtype: "toolbar",
docked: "top",
title: "Pågående anbud"
},{
xtype: 'list',
itemTpl: '<div class="contact"><h1>{name} <tpl if="active != null"><span class="active">{active}</span></tpl><tpl if="inactive != null"><span class="inactive">{inactive}</span></tpl></h1><span class="rating">{rating}</span> · <span class="rating">{amount}</span> </div>',
grouped: true,
flex: 1,
store : 'Auction',
listeners:{
itemtap: function(){
//go to the Auction Detial view
}
}
}]
}
});
私の詳細ビュー
Ext.define('GS.view.AuctionDetail', {
extend: 'Ext.Panel',
alias: 'widget.auctiondetail',
config: {
styleHtmlContent: true,
scrollable: 'vertical',
title: 'Details',
html: 'Hello!'
}
});
すべての助けに感謝します!!
ありがとう!