With reference to: Event “press” on sap.m.CustomListItem doesn't work, I've tried the same solution , but the press event isn't fired.
<List growing="true" growingScrollToLoad="true" id="employeeMasterList" includeItemInSelection="true"
items="{path: '/EmployeeSet'}">
<items id="employeeMasterListItems">
<CustomListItem id="employeeMasterListItem" type="Active" press="onSelect">
<Label text="Test" />
</CustomListItem>
</items>
</List>
In the controller I have the following method:
onSelect: function(oEvent) {
console.log("onSelect", oEvent);
}
With Type DetailAndActive
I can fire the detailPress
event, but nothing else.
Any idea?
Sorry for duplicate post. Unfortunately, I can not add a comment to the mentioned question due to missing reps.