Skip to content
New issue

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

Can I create submenus for System Tray Menu Actions? #375

Open
rsshilli opened this issue Aug 9, 2022 · 0 comments
Open

Can I create submenus for System Tray Menu Actions? #375

rsshilli opened this issue Aug 9, 2022 · 0 comments

Comments

@rsshilli
Copy link

rsshilli commented Aug 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant