MenuOverlay class

A canvas-rendered popup menu for dropdown / split-button items — the Jaspr counterpart of Xojo's DesktopMenuItem.PopUp (desktop) and the JS-injected menu overlay (web), but painted into its own <canvas> so it stays consistent with the ribbon.

The overlay is anchored below the button's bottom-left corner. If there is no room below it flips above; if it would overflow the right edge it shifts left. A transparent fullscreen backdrop closes the menu on outside click.

Constructors

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Tears down the overlay (canvas + backdrop + listeners).
dismiss() → void
Closes the menu without a selection (outside click / dismiss).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() → void
Builds, positions, paints and shows the overlay.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited