Gio.Menu.prototype.append_submenu
function append_submenu(label: String, submenu: Gio.MenuModel): void {
// Gjs wrapper for g_menu_append_submenu()
}
Convenience function for appending a submenu menu item to the end of menu. Combine Gio.MenuItem.new_submenu and Gio.Menu.prototype.insert_item for a more flexible alternative.
Since 2.32
- label
the section label, or null
- submenu
a Gio.MenuModel with the items of the submenu