mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-16 08:59:29 +08: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,
|
|
}
|
|
}
|