A callout / popover: a rounded panel with a directional tail pointing at an anchor point,
shown on UIRoot.popupLayer. Add content to body (below the optional title). It prefers to
sit below the anchor with the tail pointing up, flips above when it would clip the viewport
bottom, and clamps horizontally while keeping the tail aimed at the anchor.
A transparent full-screen blocker sits behind it: a click outside closes it (as do Escape and
the host's Back handling via UIRoot.pushOverlayCloser). Unlike UIModal it does not dim the
background. Closing disposes the balloon.
Constructor
new(width:Float, height:Float, ?title:String)
Parameters:
width | the balloon width |
|---|---|
height | the balloon height (tail excluded) |
title | optional header text |
Variables
finalbody:UIComponent
Add balloon content here (coordinates relative to the balloon, below the title).
Methods
open(anchorX:Float, anchorY:Float):Void
Opens the balloon pointing at a UI-space anchor point.
Parameters:
anchorX | the anchor x in UI (root content) coordinates |
|---|---|
anchorY | the anchor y in UI coordinates |
openAt(target:DisplayObject):Void
Opens the balloon pointing at the bottom-center of a display object.
Parameters:
target | the object to point at (must be on the stage) |
|---|