I want to create a taphold listener to a List. It's impossible to do this directly on a listitem, but it's possible on the underlying element like this:
Code:
this.myList = new Ext.List({
store: store,
grouped: true,
indexBar: true,
onItemDisclosure: true,
emptyText: 'its empty',
itemTpl: template,
listeners: {
taphold: {
element : 'el',
fn: function(event, e) {
console.log('taphold');
// action
}
},
}
});
To proces the taphold, I need the selected record. I've no idea how to get the correct record. Has anyone an idea? Thanks.