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