set_section


Description:

public void set_section (MenuModel? section)

Sets or unsets the "section" link of this to section.

The effect of having one menu appear as a section of another is exactly as it sounds: the items from section become a direct part of the menu that this is added to. See MenuItem.section for more information about what it means for a menu item to be a section.

Parameters:

this

a MenuItem

section

a MenuModel, or null