Hi all.I use standart list item.but i dont triggered mouse click event.please help me
var model = new sap.ui.model.json.JSONModel();
model.setData(resultList);
// create the UI
// create a List control
var list = new sap.m.List({
mode: sap.m.ListMode.SingleSelectMaster
});
// bind the List items to the data collection
itemTemplate = new sap.m.StandardListItem({
title: "{bpnm}",
description: "{tel}",
tap: function(oEvent) {
alert("zzz");
},
type: 'Navigation'
});
list.bindItems({
path : "/",
sorter : new sap.ui.model.Sorter("bpnm"),
template : itemTemplate
}).setModel(model);