HaxeUI Tutorial

DropDown

John Gabriele

In your main.xml:

That will get you:

At the top of your Main.hx, be sure to import:

and in your Main.main function, find the widget and assign its handler:

Finally, in your handler function:

Where that dd.selectedIndex is a zero-based index into your list of dropdown items.