prepend_submenu


Description:

public void prepend_submenu (string? label, MenuModel submenu)

Convenience function for prepending a submenu menu item to the start of this.

Combine MenuItem.submenu and insert_item for a more flexible alternative.

Parameters:

this

a Menu

label

the section label, or null

submenu

a MenuModel with the items of the submenu