Hi,
I am trying to create a protoUI by combining Template and MouseEvents, like in this snippet: https://snippet.webix.com/75jsdwyp
I am doing so as to attach a context menu and be able to use the onBefore & onAfterContextMenu events. I know I can attach to the template’s $view, but I need the onBeforeContextMenu event in order to update the context menu before showing it. Getting click events would be a nice plus, too.
The problem is, that when I add the required onContext: {} to my protoUI template definition, I get a script error.
Is there an alternate way to achieve what I am trying to do?
Thank you.