react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

Can I create submenus for System Tray Menu Actions?

Open rsshilli opened this issue 3 years ago • 0 comments

Hello,

First, thank you for creating this package! It's really nice.

I'd like to create a submenu for one of my action items in my system tray. For example, I have something like:

    <SystemTrayIcon icon={icon} visible>
      <Menu>
         <Action text="Do something"/>
      </Menu>
    </SystemTrayIcon>

And I'd like to make a submenu for my action. So something like:

    <SystemTrayIcon icon={icon} visible>
      <Menu>
         <Action text="Do something">
            <Menu>
               <Action text="Show"/>
               <Action text="Hide"/>
            </Menu>
         </Action>
      </Menu>
    </SystemTrayIcon>

Very similar to what's being shown off here: https://github.com/nodegui/examples/blob/master/nodegui/systray/src/index.ts#L35-L55

Is this possible today? If not, could you please add it, or give me some direction on where to add it?

Ryan

rsshilli avatar Aug 09 '22 04:08 rsshilli