Creates the main menu flyout.
Optionaloptions: MainMenuOptions
dataElement and additionalItems.
Replaces the items of the flyout and updates it on screen.
Flyout items: objects with label, onClick, icon or children, component instances, 'divider', or dataElements of existing items.
Unique name of the flyout.
Items of the flyout; assigning a new array is the same as calling setItems.
The flyout's data as added to the viewer by UI.Flyouts.addFlyouts.
OptionaltoggledataElement of the element that opens the flyout.
Item type: 'flyout'.
The main ("more") menu: a Flyout whose dataElement defaults to
'MainMenuFlyout', so adding it withUI.Flyouts.addFlyoutsreplaces the default menu. Its items are the default menu items followed byadditionalItems.Example