I've sucessfully done the creation part of the submenu. I had to use build, in order to have some data that is only available on runtime. This data appears on a submenu, and I need to have a title on each of those submenu items, as well as click funtion on each of them.
I cant seem to make it work, both the title and the function on those submenu items.
I'm creting a jquery context menu, using https://swisnl.github.io/jQuery-contextMenu/ .
I've sucessfully done the creation part of the submenu. I had to use build, in order to have some data that is only available on runtime. This data appears on a submenu, and I need to have a title on each of those submenu items, as well as click funtion on each of them.
I cant seem to make it work, both the title and the function on those submenu items.
Here is my code:
Since the events part of contextMenu doesnt work with build, I dont know what else to do. I've also added the following code:
But it also doesnt work.
Can anyone tell me if this is possible, and if so, how?