Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomizedMenuItem ¶
func NewCustomizedMenuItem(label string, fn func(), opts ...MenuOption) *fyne.MenuItem
NewCustomizedMenuItem creates a fyne.MenuItem with the provided label and fn, and applies all of the MenuOption(s) to it.
Types ¶
type MenuOption ¶
type MenuOption func(*fyne.MenuItem)
MenuOption is used to customize the behaviour and properties of a fyne.MenuItem
func Checked ¶
func Checked(b bool, onChange func()) MenuOption
Checked allows toggling the state of a fyne.MenuItem, calling onChange with the value whenever the fyne.MenuItem is clicked/tapped.
func Gated ¶
func Gated(b bool) MenuOption
Gated disables the fyne.MenuItem from being interactable when b is false. The menu should be recreated whenever these conditions change (TODO make it so u dont)
Click to show internal directories.
Click to hide internal directories.