Sencha touch 2.1 アプリの NestedList の detailsCard 内に Ext.Audio コンポーネントがあります。detailsCard で [戻る] ボタンをタップしたときにオーディオ ストリームを停止する方法がわかりません。また、detailsCardの戻るボタンだけの「戻るボタンタップイベント」を聞く方法もわかりません。これが私のコードです:
Ext.define('App.view.Lead', {
extend: 'Ext.NestedList',
xtype: 'lead',
config: {
title: 'Lead',
iconCls:'lead',
store: 'LeadStore',
displayField: 'title',
detailCard: { html: 'details' }
},
getDetailCard: function(node) {
if (node) {
return {
xtype: 'container',
layout: 'fit',
items: [
{
xtype: 'panel',
layout:'fit',
html: node.get('text')
},
{
xtype: 'audio',
docked: 'bottom',
url : node.get('audio'),
autoPause: true,
},
]
}
}
}
});
前もって感謝します