We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, is it possible to have submenu ? Can this be added if it yet to be supported ?
The text was updated successfully, but these errors were encountered:
You can add menu items yourself by either prepending or appending. A menu item can have a submenu. This is all in the docs.
Sorry, something went wrong.
For anyone still searching: it's in the Electron docs not in the electron-context-menu docs. And it would look like this:
electron-context-menu
contextMenu({ prepend: (defaultActions, parameters, browserWindow) => [ { label: 'My Menu Item with Children', submenu: [ { label: 'Child Item 1', }, { label: 'Child Item 2', }, ], }, ] })
Note that submenu is an array of MenuItems.
submenu
MenuItem
No branches or pull requests
Hi,
is it possible to have submenu ?
Can this be added if it yet to be supported ?
The text was updated successfully, but these errors were encountered: