Fyne API fyne
fyne
import "fyne.io/fyne"
Usage
type MenuItem
type MenuItem struct {
Label string
Action func()
}
MenuItem is a single item within any menu, it contains a display Label and Action function that is called when tapped.
func NewMenuItem
func NewMenuItem(label string, action func()) *MenuItem
NewMenuItem creates a new menu item from the passed label and action parameters.