0
[
  {
    role: 'help',
    submenu: [...]
  },
  {
    label: 'Upgrade',
    submenu: [],
  }
]

The new menu is also visible if the submenu is an empty array:

Menu screenshot

I want to show this menu without submenu, which means that when I click on this menu, it will navigate me to a specific action like a button.

4
  • 1
    Users don't expect that. They expect to be able to explore an application by clicking top-level menu items without an action being triggered. Perhaps Upgrade belongs in the Help menu. Commented Jan 31 at 6:55
  • Hi @TimRoberts, Thanks for your help. I want to make sure that this feature can be done or not actually... Commented Jan 31 at 7:21
  • What does that have to do with it? If you ignore standards and user expectations, you end up with an application that is harder to use and generates bad feelings. Commented Jan 31 at 7:26
  • Hi Client wanted that, there are 2 cases for this new "Upgrade" menu which are "Upgrade" for free users and "Upgrade to Pro" for Premium users. I have researched and read the documentation of the Electronjs menu but seems like it doesn't. I want to make sure that by an expert... Commented Jan 31 at 7:43

0

Browse other questions tagged or ask your own question.