Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minigui: DropdownSelection - set options #470

Open
whitebyte opened this issue Dec 29, 2024 · 1 comment
Open

minigui: DropdownSelection - set options #470

whitebyte opened this issue Dec 29, 2024 · 1 comment

Comments

@whitebyte
Copy link

I couldn't find a way to conveniently set options in one pass. This is what I do now:

auto dropdown = new DropDownSelection();

foreach (el; myOptions) {
    dropdown.addOption(el);
}

It works, but it's kinda clunky. Would be nice to be able to pass the whole options array either to the constructor or to options (currently it's a getter). Or maybe both

@adamdruppe
Copy link
Owner

i need to do drop down checkboxes too at some point, so maybe i can look at all of it at once since the options may need to change to support that..... well that's probably a different class but ill think about it as i go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants