Get event on image in list

hello ,

I have a list with a template that contains an image.
When I construct the object , I have no problem to match with the event ( see : http://webix.com/snippet/2f65e4dc)

My question is how to get the event by another method.

$$(“myList”).attachEvent(???){});

Hello,

You need to attach on_click handler after the component initialization:

$$("myList").on_click.duplicate = function(e, id){alert(id)}

http://webix.com/snippet/ba622bce

Please check the “Using specific properties for mouse events” chapter of this article.

Perfect , thanks