insert_submenu


Description:

public void insert_submenu (int position, string? label, MenuModel submenu)

Convenience function for inserting a submenu menu item into this.

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

Parameters:

this

a Menu

position

the position at which to insert the item

label

the section label, or null

submenu

a MenuModel with the items of the submenu




2022 vala-language.org