Gio.Menu.prototype.prepend_submenu

function prepend_submenu(label: String, submenu: Gio.MenuModel): void {
    // Gjs wrapper for g_menu_prepend_submenu()
}
  

Convenience function for prepending a submenu menu item to the start 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