In the template, add code like following
items: [
{
xtype: "list",
store: "store",
itemId:"list",
onItemDisclosure: true,
itemTpl:"<div class='x-button' type='test' style='border: none;'></div>"+
"<div class=\"list-item-title\">{title}</div>"
grouped: true,
listeners:{
itemtap: function(list, index, target, record, e, eOpts){
this.up('abc').onItemTap();
}
}
},
onItemTap: function(target){
try{
var btnType = target.getTarget('div.x-button').getAttribute('type');
if(btnType){
this.btnClick();
}
}catch(e){
alert("not a button");
console.log(e);
}
},
btnClick: function(){
alert("button in tpl clicked");
}
This is not exact code. This is just a sample.