LibGui icon indicating copy to clipboard operation
LibGui copied to clipboard

Add Combo-box widget

Open axieum opened this issue 3 years ago • 1 comments

Describe the solution you'd like The addition of a new Combo box widget.

Additionally, I would like a way to customise the dropdown components, e.g. to add an icon next to each item.

Additional context Windows Run dialog - image

Combo box example - image

Autocomplete example - image

axieum avatar Jul 02 '21 10:07 axieum

I looked into this somewhat and the core issue preventing easy implementation is how the onClick triggers are hooked up.

The instant that a combobox dropdown exits the bounds of its parent panel, it no longer registers mouse input. The workaround I'm using for this is to just forgo mouse input and instead use up/down arrow keys to select an option, with the list filtering based on the contents of the central WTextField widget. This ends up sorta like how autofill works in the vanilla minecraft chatbox

tmudway avatar Mar 09 '24 00:03 tmudway