Open context menu on button click

On a list, i’m trying to open a context menu when a button in an item is clicked (not on item right-click). After many tries, i didn’t find a way to do that.

I’ve tried with ActiveContent, but didn’t succes to transmit the context to the contextmenu.

Any ideas to perform that ?

Thanks

I’ve finally found a hacky solution :
http://webix.com/snippet/ab4082c4

This use ActiveContent to get the clicked item id and store it as a custom variable of context menu before opening it.

I hope there is a more official way

Actually, you don’t need ActiveContent, but your solution is close enough. There’s a simpler way:

http://webix.com/snippet/65f04796