Skip to content

Add ComboBox widget#1954

Merged
hecrj merged 7 commits intoiced-rs:masterfrom
jhff:widget/combobox
Jul 26, 2023
Merged

Add ComboBox widget#1954
hecrj merged 7 commits intoiced-rs:masterfrom
jhff:widget/combobox

Conversation

@jhff
Copy link
Contributor

@jhff jhff commented Jul 13, 2023

Summary

This widget combines a TextInput with a Menu to produce a dropdown list of searchable and selectable options.

Rotating through the options with the arrow keys can also produce messages by adding a Message to on_selection without actually changing the widget value. This can be helpful for, e.g., previewing options.

Demo

combobox

@Mingun
Copy link

Mingun commented Jul 13, 2023

For aesthetic, left & right padding of the menu should be the same as padding of the text box. The arrow control that will serve as a visual indicator of a dropdown menu, are also very welcome

@hecrj hecrj added the feature New feature or request label Jul 15, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jul 15, 2023
@hecrj hecrj added the widget label Jul 15, 2023
@hecrj hecrj force-pushed the widget/combobox branch from 00a7e67 to 28d32a8 Compare July 26, 2023 20:35
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks 🥳

Fixed and renamed some minor things, but everything looks good 🚢

@hecrj hecrj enabled auto-merge July 26, 2023 20:38
@hecrj hecrj merged commit a0a3cf7 into iced-rs:master Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments