connors / photon

The fastest way to build beautiful Electron apps using simple HTML and CSS
photonkit.com
MIT License
10.01k stars 579 forks source link

btn-dropdown subm menu items HOW? #106

Open galactictourist opened 8 years ago

galactictourist commented 8 years ago

What is the code for sub items for the dropdown menu button?

RiverSongFox commented 8 years ago

I'm also interested in dropdown menu button items, but I can't find any related references in CSS source.

DarrylD commented 8 years ago

Was a source supposed to be provided?

afshing commented 7 years ago

Is it any example how to feed the dropdown items to the dropdown? It looks like there is no documentation on this, and this issue is open for a long time!

yuyat commented 7 years ago

+1

DarrylD commented 7 years ago

I think it's here https://github.com/connors/photon/blob/master/dist/template-app/js/menu.js

yuyat commented 7 years ago

DarryID, that is context menu.

mikerogne commented 5 years ago

Replying 2 years later... 😎

In case anybody else finds this via Google, etc: That link above actually is relevant. It's outdated, but relevant.

https://electronjs.org/docs/api/menu#examples