嗨我需要我的sencha触摸网格中的按钮。我需要触发按钮事件。请c下面的代码
xtype: 'grid',
store : { xclass : 'JPM.store.MuatTurun.MuatTurun'},
title :'Muat Turun',
width: '100%',
itemHeight: 70,
columns: [
{
header: 'Name' ,
itemId: 'mycolumn1',
flex: 1 ,
xtype: 'templatecolumn' ,
tpl: '<button><div class="muatTurun">Muat Turun</div></button>',
listeners: {
click: function(){
console.log('click');
},
dblclick: function(){
console.log('dblclick');
} ,
itemclick: function(dv, record, item, index, e) {
alert('working');
},
}
}
] ,
plugins: [
{
type: 'gridpagingtoolbar'
}
]
}
]
}
但是模板列中的监听器无效。任何解决方案?