Gio.Menu.prototype.append

function append(label: String, detailed_action: String): void {
    // Gjs wrapper for g_menu_append()
}
  

Convenience function for appending a normal menu item to the end of menu. Combine Gio.MenuItem.new and Gio.Menu.prototype.insert_item for a more flexible alternative.

Since 2.32

label

the section label, or null

detailed_action

the detailed action string, or null