d3-context-menu icon indicating copy to clipboard operation
d3-context-menu copied to clipboard

Nested context menu options?

Open jnkroeker opened this issue 6 years ago • 4 comments

Is it possible to nest menu items? Say I want two top level options Select and Deselect. Clicking on each would reveal a submenu with attributes to select or deselect by. Is this supported and if so could an example be provided? Cant seem to get this use case to work.

jnkroeker avatar Aug 29 '18 19:08 jnkroeker

Whether yay or nay, any feedback on this would be helpful

jnkroeker avatar Sep 07 '18 20:09 jnkroeker

Sorry for the delay, I thought I'd posted a comment. It is not currently possible to nest items, though I'd accept a pull request for such a feature.

patorjk avatar Sep 07 '18 21:09 patorjk

@patorjk I added this feature in PR #50. Please check it.

matsuby avatar Mar 11 '19 03:03 matsuby

This looks pretty good, I'll merge it in later today. Thanks!

patorjk avatar Mar 11 '19 13:03 patorjk