Creates a flyout.
The flyout's dataElement, items and toggleElement.
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'.
A pop-up menu of items, opened by a button whose toggleElement is the flyout's dataElement. Add it with UI.Flyouts.addFlyouts.
Example