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

Show enums as buttons instead of dropdown menu #1029

Open
MustafaJafar opened this issue Feb 18, 2025 · 5 comments
Open

Show enums as buttons instead of dropdown menu #1029

MustafaJafar opened this issue Feb 18, 2025 · 5 comments

Comments

@MustafaJafar
Copy link

MustafaJafar commented Feb 18, 2025

It'd be so cool to show enums as buttons like permission widget.
This can be helpful to create a toggle with explicit labels.
Nice to have: to be able to specify colors per button.
Image

@MustafaJafar MustafaJafar added the type: enhancement Improvement of existing functionality or minor addition label Feb 18, 2025
@Innders
Copy link
Member

Innders commented Feb 19, 2025

Can you please give an example of where and how this would be used?

@MustafaJafar
Copy link
Author

Can you please give an example of where and how this would be used?

Use case: A variation for showing enums.

  • So, it'd look like this mockup.
    I wonder if the enum items can be like {"value": "some_value", "label": "Some Label", "button_color": "#ffb600"}
    Image
  • instead of looking like a list.
    Image

@BigRoy : I've used department layers orders as example. However, we may not need to a target in this setting.

@BigRoy
Copy link
Contributor

BigRoy commented Feb 19, 2025

I've used department layers orders as example. However, we may not need to a target in this setting.

The target is for some decision level on how the resulting layer file is structured on first creation if I recall. If there's issues there or confusion about it - let's make a ticket on ayon-usd instead.

@MustafaJafar
Copy link
Author

MustafaJafar commented Feb 19, 2025

The target is for some decision level on how the resulting layer file is structured on first creation if I recall. If there's issues there or confusion about it - let's make a ticket on ayon-usd instead.

Indeed, the need for the target in my example above should be discussed in a different place.
However, I've just use it to show my frontend suggestion.

@Innders
Copy link
Member

Innders commented Feb 19, 2025

This works well when you have 1-3 options but as soon as you have 10 options to pick from that the UI is completely unusable.

@mkolar mkolar removed the type: enhancement Improvement of existing functionality or minor addition label Feb 25, 2025
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

5 participants