Displays a pop-up like a drop-down, either below or above the source.

Events:

openfl.events.Event.OPEN

Dispatched when the pop-up adapter opens, and DropDownPopUpAdapter.active changes to true.

openfl.events.Event.CLOSE

Dispatched when the pop-up adapter closes, and DropDownPopUpAdapter.active changes to false.

Available since

1.0.0

.

Constructor

new()

Creates a new DropDownPopUpAdapter object.

Available since

1.0.0

.

Variables

fitContentToOriginWidth:Bool

Determines if the width or minWidth of the content is adjusted to match the width of the origin, when the content is smaller than the origin.

gap:Float

The gap, measured in pixels, between the origin and the content.

@:value(false)modal:Bool = false

Determines if the content is displayed modally on the pop-up manager.

Methods

close():Void

See also:

open(content:DisplayObject, origin:DisplayObject):Void