Menu

It displays a contextual or dropdown menu anchored to a specific view. The menu is organized into groups of items, where each item has content and an action callback. Empty groups are ignored.

Constructors

Menu

Menu creates a new menu with the given anchor and groups. Empty groups are discarded when rendering.


Methods

MethodDescription
Frame(frame Frame)Frame sets the layout frame of the menu.
Offset(offset Length)Offset sets the offset of the menu from its anchor.

Related