Hi,
I have an icon on my board like this:
{icon: "bars", click: function(e,id) { DoMenu(e,id); return false;}}
DoMenu looks like this:
function DoMenu(e,id) {
$$("itemMenu").attachTo(this);
$$("itemMenu").show(e);
webix.html.preventEvent(e);
}
Then I handle the menu click event like this:
$$("itemMenu").attachEvent("onItemClick",function(id){
alert(this.getItem(id).value);
});
All is good, I click the card’s icon and the menu shows then when I click a menu item my event fires and I get a reference to the menu item that was clicked.
The bit that I’m missing is how to get the id of the card that showed the menu - I need to know which menu item was clicked + which card it was clicked on.