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

Drop-down JS interface for Literal choices #115

Open
liamhuber opened this issue Mar 10, 2025 · 2 comments
Open

Drop-down JS interface for Literal choices #115

liamhuber opened this issue Mar 10, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@liamhuber
Copy link
Member

E.g.

@as_function_node
def Choice(choose: Literal["a", "b", "c"]):
    chosen = choose
    return chosen

Should represent with a drop-down menu for choosing a, b, or c.

I swear I've seen drop down menus here before, but it might have been in Joerg's version. At any rate, the example above is not enough to give the desired behaviour on main right now.

@liamhuber liamhuber added the enhancement New feature or request label Mar 10, 2025
@pmrv
Copy link
Contributor

pmrv commented Mar 10, 2025

It might have been in Joerg's code. I'd like it too, but the current version can't do it.

@liamhuber
Copy link
Member Author

Alright, thanks for the quick confirmation that I'm not just failing to find an existing feature!

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

No branches or pull requests

2 participants