d3-context-menu
d3-context-menu copied to clipboard
Dynamic menu for each Item callback based
I'm looking for a way to populate a dynamic context menu in a callback ajax call.
I mean i found a method to create dynamic numbers of row(li) but it works on modyfing directly the DOM element and i don't think is a good practice especially because i have to add an hanlder function click for every element of menu.
So i don't understand reading all requests and issues if the object menu in
.on('contextmenu',d3.contextMenu(menu,...
must only be instantiated before contextMenu function called.