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

widgets: spinner (dropdown selection), integer/float input, imgui style tree #209

Open
aentity opened this issue Feb 27, 2020 · 3 comments
Labels
feature New feature or request layout widget

Comments

@aentity
Copy link
Contributor

aentity commented Feb 27, 2020

Wondering about support for following widgets:

  1. Spinner, dropdown selection with N set of known values
  2. Typed integer/float input fields, for easy numeric inputs
  3. Imgui style "tree", which is collapsible (nice for preserving space), and allows for nesting of more trees

Do you plan to support 1/2, with 3 maybe a wishlist item?

@hecrj hecrj added the feature New feature or request label Feb 27, 2020
@hecrj
Copy link
Member

hecrj commented Mar 2, 2020

Yes, I think we should support these widgets or a variation of them in the long run:

  1. A combobox or similar is the main widget I think we should build when implementing Layers #30.
  2. A number field should be possible currently. The main challenge here is to reuse text editing logic nicely. Text Selection for text_input widget #202 is somewhat related to this.
  3. A tree widget would be great, but I am not sure if we will currently find any important blockers. I'd love to see exploration attempts in this area.

@loewenheim
Copy link

I'd love to take a stab at the tree widget, but I think I'm gonna need some pointers. The way I see it, a tree contains some sort of content and a vector of children. But when rendering it, there also has to be something you can click to collapse it. Should that just be a Button? And if so, at what point is it created? Is it part of the Tree struct?

@Kaffiend
Copy link

Kaffiend commented Nov 11, 2020

I would also like to add input masks and relevant validation and placeholders to depict the mask, ie. phone, zip+4, email, date. As for date is concerned a simple mask would suffice but maybe a more explicit control with calendar popup would be a consideration as well. similar to a dropdown.
edit: reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request layout widget
Projects
None yet
Development

No branches or pull requests

4 participants