How to add separators in context menus?

Would anyone know how I can add dividers between context menu options, like below screenshot?

I had a look at using registerSubMenu instead of registerMenuAction but that seems to imply it’ll create something like below, which isn’t what I am looking for

@akhileshraju thank you for the discussion, when you build your context-menu path you’ll need to properly create subgroups (which will ultimately be divided by the separator).

For example, the File menu is broken down into the following groups:

The same is true for both top-level and context-menus.

Thanks as always @vince-fugnitto :slightly_smiling_face:

1 Like