mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 13:19:00 -07:00
11 lines
202 B
Go
11 lines
202 B
Go
package menu
|
|
|
|
// SubMenu creates a new submenu which may be added to other
|
|
// menus
|
|
func SubMenu(label string, items []*MenuItem) *MenuItem {
|
|
return &MenuItem{
|
|
Label: label,
|
|
SubMenu: items,
|
|
}
|
|
}
|