Is there a way to put an event handler on menu element?

Viewed 60

I don't think I need these menu subitems. Can I somehow handle clicking on the menu element itself?

Something like this:

menu := fyne.NewMenu("Menu Element")
menu.Action = func() {
  ...
}
1 Answers

A menu without the popup sub-items is just a row of buttons isn’t it? It should be possible to make that with HBox and Button widgets or maybe you want a toolbar instead?

Related